I'm not sure that quitting gambling is the best way.
We will not talk about that particular case when a person came to gambling and immediately won a lot of money. After which he left gambling forever, because such lucky people are literally 1 in 1,000.
I am sure that if someone has strong self-control, then he can periodically gamble for small amounts and thus relieve stress and lift his spirits. It is still better than alcohol, and there is a chance to win even more money.