Now, little children, remain in him, that when he appears, we may have boldness, and not be ashamed before him at his coming.

 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. 