You don't have to work your way by being good. Jesus does say if you ove me you will keep my commandments. In no way is salvation conditional or based on any effort from you. It is only a gift you can receive if you only take it. If you think about it, it is much more valuable than earthly millions because you never know how short you life will be.
Salvation is eternal.
I want you to know that if you give Jesus your life, He will take control and give you peace. You will sleep and awake in peace. The case for Christ by Lee Strobel. It is worth careful consideration.