No man has ever been able to keep any commandment. God gave His people the commandments so they can see that they are totally depraved.
God knows full well that it's impossible for any man to keep any of His commandments. By giving the commandments, God has the legal and moral right to punish all those who break any one of them (that's all of us).
Nobody can claim thewy sinned in ignorance, even those who were born n isolated parts of the world and never heard of the commandments, are still guilty because God wrote His law on their hearts, so they are without excuse.
What this cold harsh reality boils down to, is that there's nothing good in me and you. We were born dead in our sin, we inherited our sin nature from Adam. As such, we all naturally love sin and hate God. And we are born into slavery to Satan, because He has the legal right to enslave us,, since Adam rejected God and served Satan instead.
God doesn't save someone, by helping them to change from being carnal (wicked) to spiritual (good). No God must first kill the person (metaphorically) kill their old nature and give them the gift of His Holy Spirit (born again), where the old things have passed away and all things become new.
This new man, doesn't attain "sinless perfection" in this life. That happens in the life to come, when we are transformed into the image of His Son, in a twinkling of an eye. We receive our glorified, immortal bodies and we inherit all the treasures of the universe.
None of this is achieved by a sinner, who is dead in his sin, making a choice to obey the God he hates. Salvation is of the Lord, He is the Autor and finisher of our faith. Yes we do good, works because the Holy Spirit is working to transform us in this life, so if we obey any commandment or do any good works, it's because He is leading us and helping us o obey and do good works.
It's all about Him, our old nature demands praise and self promotion, it cries out to have it's lust satisfied, so it's a constant in struggle against our old nature, just as Paul described this battle by saying that he doesn't do the good that he would do, but he does the evil that he doesn't want to do.