People always do things like that because when we are angry , we cant control ourselves. That is why the rules of this life is simple. Never reply when you are angry, never make a decision when you are sad and never promise anythig when you are happy because if you are not calm then you cant make decision
So to avoid this kind of things, we should control ourself first, and then make decisions.
It is too hard to have cool mind if you lose the money that you have deposited on a certain gambling site, you are going to be pissed by this, you will start to being greedy just to win all back what you have lost, but maybe we could have this cool mind after losing if we are setting a limit of amount that we will use in gambling for a day.
Of course all of us had lost our cool specially if we see losses. That's the feeling that we don't want ourselves to get in. But that is gambling, we bet and hope that we are going to won, but unfortunately, this will not happen the way we want it to be.