1 John 8-10
If we make the statement: “We have no sin,” we are misleading ourselves and the truth is not in us. If we confess our sins, he is faithful and righteous so as to forgive us our sins and to cleanse us from all unrighteousness. If we make the statement: “We have not sinned,” we are making him a liar, and his word is not in us.
Is talking about whether the word of God is with you or not. If you make those 1st two statements then you are kidding yourself because there was only ever one perfect human that didnt sin and that was Jesus. Every other human being will sin, but if you accept that and then trust and believe in the ransom of Jesus Christ and ask for forgiveness through that beleif for your sin, Jehovah God will forgive you
1 John 8-16
He who carries on sin originates with the Devil, because the Devil has been sinning from [the] beginning. For this purpose the Son of God was made manifest, namely, to break up the works of the Devil. Everyone who has been born from God does not carry on sin, because His [reproductive] seed remains in such one, and he cannot practice sin, because he has been born from God. The children of God and the children of the Devil are evident by this fact: Everyone who does not carry on righteousness does not originate with God, neither does he who does not love his brother. For this is the message which YOU have heard from [the] beginning, that we should have love for one another; not like Cain, who originated with the wicked one and slaughtered his brother. And for the sake of what did he slaughter him? Because his own works were wicked, but those of his brother [were] righteous. Do not marvel, brothers, that the world hates YOU. We know we have passed over from death to life, because we love the brothers. He who does not love remains in death. Everyone who hates his brother is a manslayer, and YOU know that no manslayer has everlasting life remaining in him. By this we have come to know love, because that one surrendered his soul for us; and we are under obligation to surrender [our] souls for [our] brothers.
So basically all this means is that those who are from God are evident by their deeds.
you cant just quote something out of context, you need to read the stuff around it to understand what it is saying.
That particular scripture means that A person of God does not go out to deliberately sin. We may do this occasionally but that is becasue we are imperfect, but then through yyour first quoted scripture, if you dont acknwledge and repent for your sins, then you are not one of God's people. His word is not with you, you are not living as a person of God. Both those scriptures avtually support each other and can be used to reason on whther your heart is lying with Jehovah or not.