It's easy to say but difficult to do, it's a kinda of addiction so if you want to quit it then you have to shift yourself in another addiction. At first you have to choose an alternative plan to replace gambling. Then you must be determined to quit gambling by any means. Choose your new routine and emphasis on implementing your new life. I think you can be abstain yourself from gambling.
Not all of the addictions are bad, but I'm not defending gambling, I mean, if you are really want to quit gambling for good because you have realized that it is not worth it, then, quit it, and be addicted to the other things which you know that could help you in your life to be a successful person that you are thinking to yourself. You have to be dedicated on quitting gambling if you do really want to get out of this mess.
The worst possibility that could happen to you is that, you will not be able to eat again, because you are broke, maybe you could, but you couldn't eat three times a day anymore because you are budgeting the cash that is still remaining on your bank account or something.