No one is hopeless in God's eyes when it comes to salvation–no one. As Jesus said on one occasion, "With man this is impossible, but not with God; all things are possible with God" (Mark 10:27).
Why is this? The reason is because our salvation does not depend on us, but on God–and He has done everything necessary to make our salvation possible. You see, no matter how good we are, we are never good enough to win our way into heaven. God's standard is perfection, and even one sin would be enough to keep you out of heaven. Even if you resisted every temptation that came your way, you still would not be fit for heaven.
This is why Jesus Christ came into the world. He was without sin–but on the cross He took all our sins upon himself, and He died in our place. Now God offers us salvation as a free gift–free because Jesus Christ paid the price for our salvation by shedding His blood for us. The Bible says, "For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord" (Romans 6:23).
I urge you to receive this gift by trusting Christ alone for your salvation. When you do, God Himself will come to live within you by His Spirit–and when that happens, He will give you a new desire to do what is right and a new power to turn your back on what is wrong. Open your heart to Jesus Christ today.