That's how gambling works and this is why one has to set a limit to what you can gamble with within a day, week or month base on your capacity. This isn't applicable to only online gambling alone but also include street card or dice gambling. The more you lose, the more you wish to play to recover for your loses. Also the more you win, the more you play believing you can make more.
Basically, gambling has a system to determine a gambler's win and loss and from this system the gambler must always maintain his awareness when he wants to place a bet, by looking at the limits of our ability to place a bet, of course this also greatly influences whether we gamble. excessive or not.
And keep in mind that we cannot ask for this system, but we as gamblers must be able to accept what the system will issue.
A good idea, it is an algorithm that is applied to gambling systems especially in some types of gambling that are purely based on luck such as slot machines for example, where bets are randomized to determine who will be the winner and who will lose in that session, and with this it is clear that whatever method you use such as a strategy or some pattern that you believe in, it will actually have no effect at all and has nothing to do with increasing the chances of getting a win. Everything is set up in such a way by the casino and overall they set up that the winning percentage is much more difficult than losing.
This is the reason why many people say that losses are always more frequent than occasional wins, obviously because the system is designed to benefit the house and maybe the gambler only gets a few wins which is actually the purpose of the casino providing the winnings is nothing but to attract gamblers to return to betting which many even overdo it. Therefore as you suggest that it is best to gamble in moderation, reasonably and to the best of your ability, due to the fact that you will never know when you can win and it is better to pay attention and emphasize yourself to focus more on many precautions.