Thank you for your advice. It's important to prioritize healthy and social activities to overcome loneliness. I'll make sure to spend more time with friends and family, engage in recreational activities, and avoid gambling as a way to cope. I appreciate your concern about the potential financial risks associated with it.
There are extreme cases where family and friends may not be present in the same space as you and that feeling of loneliness becomes inevitable. Spending time with them becomes impossible. There are times where even in the midst of people you are still lonely. Some loneliness is accompanied with depression. Join a bowling league, book club, volunteer for a charity, etc. Discover your passion and invest your time and effort into it while you try to connect with people with similar interests. And repeat the activities on a periodic basis. Life is about having stuff to look forward to.
No one can predict the future completely and that means it is very possible for them or you to experience the same condition as you described which is far from many people because of something that can certainly make you feel lonely and that's where several possibilities can occur, not only gambling but to do some other actions that also have risks that can occur such as getting drunk or taking drugs to make yourself less lonely by feeling the effects of what you consume.
But lately as technology develops more and more people prefer to engage in gambling because gambling seems to be more and more promoted and easier to find on some social media accidentally, so it's a possibility that might happen. If you are feeling lonely then it is better to find other activities that can be useful and still in the positive category to do, all of this is a choice and your choice will determine everything about what you will experience as a result of the decisions you have chosen.