it's true, if you don't want to lose money while gambling the best solution is to stop. Betting is all about luck, because the chance of winning is only a few percent of the total money you bet.
So the strategy you have to do is manage your finances in each game, don't let your money run out in just one game. Because luck when playing gambling is not only in one game, you can get big wins after experiencing several defeats or vice versa.
That means we must pay attention to the amount of money we still have and must be able to decide when we should stop immediately. Stopping is the best solution to avoid the number of losses that can get bigger. After all, we don't want to see all our money running out that day, so we need to regulate the amount of spending on gambling. This strategy will be useful in luck and skill-based gambling games because that will determine how much money we can use in a day. And if we have tried to manage the money, we must follow these limits so we don't experience too big a loss.