Dear children, let no one deceive you. Whoever does what is right is righteous, just as he is righteous.
In context
5You know that he was revealed to take away sins, and in him there is no sin. 6No one who remains in him keeps on sinning. No one who keeps on sinning has seen him or known him. 7Dear children, let no one deceive you. Whoever does what is right is righteous, just as he is righteous. 8Whoever sins belongs to the devil, because the devil has been sinning from the beginning. This is why the Son of God was revealed: to destroy the devil’s works. 9No one who has been born of God keeps on sinning, because God’s seed remains in him; he cannot keep on sinning, because he has been born of God.