That's not what the scripture says -
"Most assuredly, I say to you, he who hears My word and believes in Him who sent Me has everlasting life, and shall not come into judgment, but has passed from death into life. John 5:24
The everlasting life is conditional upon believing.
But now having been set free from sin, and having become slaves of God, you have your fruit to holiness, and the end, everlasting life.
For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord. Romans 6:22-23
The gift of God is eternal life in Christ...
It does not say this gift is irrevocable.
...you have your fruit to holiness, and the end, everlasting life.
The end result of a fruitful life of holiness is everlasting life.
Just as Peter says -
9 receiving the end of your faith--the salvation of your souls.1 Peter 1:9
For now we have faith in Christ for the salvation of our souls, and the end being eternal life.
Trying to build a doctrine off of one scripture, or one scripture and another taken out of context is not a sound way of building upon a sure foundation.
There are many scriptures in the new Testament the teach us the fullness of truth through the whole counsel of God.
Other verses in Romans 6 that exhort us about these things -
12 Therefore do not let sin reign in your mortal body, that you should obey it in its lusts.
13 And do not present your members as instruments of unrighteousness to sin, but present yourselves to God as being alive from the dead, and your members as instruments of righteousness to God.
16 Do you not know that to whom you present yourselves slaves to obey, you are that one's slaves whom you obey, whether of sin leading to death, or of obedience leading to righteousness?
For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord.
Paul tells us that presenting ourselves to obey sin leads to death...for the wages of sin is death!
JLB