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.
Gambling is not just a bad way out of depression or boredom. It is literally the same as running down a hill. Yes, of course it is always fun to spend huge amounts of money and reassure yourself that there is a chance to win. But can money really bring happiness to a person in this case? I don't think so. It is not for nothing that statistics are full of stories about lucky people who won the lottery becoming even more unhappy because of money. And I believe that this is true.