That's true but unfortunately, not many people have plans if luck is not on our side so we can panic and immediately use all the money available to recover the losses we have experienced. Instead of being able to recover losses, we can get more losses and even we can lose all the money. Sometimes people forget what they have planned and will not stop until they achieve something they want. We can't be like that and we have to be in control of our game.
I understand what you mean very well and had similar experience in the past. When I first started out with gambling it was hard for me to control my gambling budget, especially during a losing streak it's hard to remain in control, after to many losses in a row I started to care less and increased my risk to try and get the money back. That only lead to losing everything. It's important to realise that we fall for such behaviour and need to actively avoid it. It's also why so many people say the most important thing in gambling and investing is to control our emotions. What helped me the most was to set fixed budgets for a month that I can gamble with. Only when I limit the amount I can use I avoid the risk to lose too much money. Having a fixed threshold of our maximum loss is also a good idea, then we know that we need to take a break from gambling.