Playing/gambling online can be the cure to those people that are going through a depression and anxiety. It's a good idea for them but if not moderated, monitored and controlled it will result to a very bad ending.
Gambling helps a lot if someone feels depressed or lonely. Indeed, measures need to be taken in order to avoid bad results that may end up in a worse situation than depression. From my personal experience, I just play small portions in my bets in order to have a longer period of playing gambling games and having fun and I take over my difficult situations.
What if one is feeling depressed and lonely and he decided to play gambling, Instead of wining he lost there too, this will be much more worse for a person who is already in tension. Playing casino is good idea when you are feeling normal so that you may fully concentrate on the game.
It will make things worse only if this person tries to win and have a profit. I think the best approach is to see gambling as a way of having some company and spend some time together. It is entertaining and it could be seen only this way. If someone expects to get some earnings in order to feel happy then yes, there is a problem that it has just been exaggerated.