Most who believe as you do say that a believer will never stop committing sins (that lead to condemnation) this side of Heaven. They can lie, look upon a woman in lust, hate and still be saved while doing so. In fact, a while ago, it seemed like you were defending that position.
Your examples ... are of non-believers.
Even the best of believers, however, still miss the mark on occasion, and James said ... if you miss one, you've in effect broken the whole Law.
We, simply, are not saved (in any way) because of our goodness ... or lack of badness.
We are saved because God loves us ... and we are willing to allow Him to love us.
Recall the example of Hosea and Gomer in the OT. God sent Hosea back after Gomer (who had again become enmeshed in whoredom) ... to illustrate His love for Israel. God never gives up on His own. And He knows who are His own.
Your position leaves you with the issue of deciding where the line is ... where you are no longer perfect/good enough for God. What sins He will forgive ... and what sins He won't.
Jesus said that only one sin was unforgiveable. That means that the rest are forgiveable.
But ... you must be bought in. Your heart must be inclined ... to God. There are plenty of "good" people whose hearts are (nevertheless) not inclined to God. They follow all of the "rules" ... and may even think that their relative "goodness" entitles them ... to a spot at God's table.
God, OTOH, requires that we be willing to acknowledge that we lack the righteousness God requires in ourselves, ... and so, throw ourselves upon God's offer of salvation through Christ's goodness. To think so highly of yourself (i.e. somehow, I have ACHIEVED or MAINTAINED lasting salvation) is, ultimately, a trap ... and will ultimately rob you of the fullness of life in Christ.
Remember reading of Christ's visit with the Pharisees ... when He was approached by the "sinner" woman. She loved Christ ... because He had forgiven her sins ... which were many. Her heart was inclined toward Christ.
OTOH, the "righteous" Pharisees with whom Christ sat ... did not love Him, ... because they thought that they MERITED God's love through their own "goodness". Their hearts ... were not inclined toward Christ ... such that they did not love even the font of LOVE, Himself.