So in gambling one needs to set a limit as to how far you will go and when to put a stop.
You are right, gambling addiction is a very serious problem for many people, one of the main factors is the desire to make a profit, and also the desire to get back money from losses, and unfortunately, almost all gamblers can't recover their losses.
Regarding how to stop gambling, I think it's very difficult to do alone, you need encouragement from friends or family, or the right choice is to ask for help at a service that provides services to stop gambling, here is one that I feel can be trusted : https://thegamblingclinic.com
Quitting in gambling needs more support to those people around the addict because if the addict alone he cannot leave gambling easily because it will needs more comfort and he needs people to understand with him and when every he goes he needs a buddy in order to successfully quit in gambling. Also by the help by himself of course because if he will not help himself then all the efforts by his family will be useless.