But What about you? Do you also use gambling to escape from stress of the real world?
From stress, grief and failures, one should turn not to gambling or alcohol or even drugs, but to religion. It just seems like an anachronism to many in the modern world, but this is the only thing that can really help a person. Gambling is entertainment, adrenaline, a chance to win a large sum of money,
but definitely not a refuge from adversity.
But what if these troubles are connected with lack of money and boredom (nothing to do)?

The only thing that can help a person escape from adversity is a re-focus of attention/activity. This can be religion, alcohol, gambling or anything. It all depends on the degree of passion for this type of activity. The issue of "destructive" hobbies, such as alcohol and gambling, is a separate topic for discussion. But purely theoretically, gambling is suitable for solving the problem of "escape". This is far from the best solution, but still, it works and in order to "endure" one problem, sometimes you have to create another. Like walking on the fine line of gambling, balancing between passion and winnings, as well as addiction and losses.
Of course, you can consider this issue in this way. By analogy with substitution therapy. This is used to treat drug addiction. Only in our example, a person wants to hide not from addiction, but from conditional grief. Will he be able to drown out his feelings and distract himself from them with gambling? Maybe. In the case of conversion to religion, this is guaranteed. Although, of course, a lot depends on the person himself.