We can't expect people to have such kind of approach in gambling, but for ourself, we can practice that so we won't feel rekt afterwards.
The truth is when you are in front of your games, it is hard to stop, especially when you are losing as you want to recover your losses.
But if you luckily get some winnings, better separate some so you won't feel so bad after you call it a day. At least leave something for your mental stress.
In other words, i would say that if you cannot control your emotions in gambling, then it is hard to control your money from being lost in gambling.
We know that winning in gambling is like a dream coming true but if you win and the money is in your account, why not cash out the money and do something else or invest somewhere rather than playing again with it and again putting the money in risk, as when you gamble again you again have a 50-50 percent chance of winning a losing a game / bet.
Gamblers think that since they have won recently in gambling, they will keep on winning and make more money. This is called greediness and if you are greedy, then you cannot achieve financial success.