If you know that he is righteous, you know that everyone who practices righteousness is born of him.

 His object in writing is that they may not sin. There is a two-fold connection of thought here--with what has gone before and with what comes afterwards. There is a two-fold danger that they may indeed think lightly of sin. 