Passage
And the one who keeps His commandments abides in Him, and He in him. We know by this that He abides in us, by the Spirit whom He gave us.
And the one who keeps His commandments abides in Him, and He in him. We know by this that He abides in us, by the Spirit whom He gave us.
1 John 3:22 and whatever we ask we receive from Him, because we keep His commandments and do the things that are pleasing in His sight.
1 John 3:23 And this is His commandment, that we believe in the name of His Son Jesus Christ, and love one another, just as He gave a commandment to us.
1 John 3:24 And the one who keeps His commandments abides in Him, and He in him. We know by this that He abides in us, by the Spirit whom He gave us.
The verse centers on "Spirit", "keeps", "commandments", "abides", and "gave". It is saying that the verse draws attention to "Spirit" and "keeps", so its meaning should be read from those terms before moving to application.
The prior verse says "And this is His commandment that we...", giving immediate footing for "Spirit" and "keeps". In 1 John context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "Spirit" and "keeps" with trust shaped by these words, not by a vague optimism outside the passage.