From reading your friend's history, I understand that your friend is completely addicted to gambling and there is no other option than rehabbing him. Since your friend bets his entire monthly salary on gambling, your friend has no word of sense of responsibility, so it is important to prevent him from gambling and rehabilitate him. Moreover, your friend is mentally disordered as he is betting with money in addition to monthly salary to recover the lost money. If your friend does not quit gambling then it is never possible to recover the money lost by your friend. So your friend's family should refer him to a good meditation doctor and treat him as per his advice. You as a friend should do whatever it takes to stop him from gambling.
The first thing that must be done is to make the addict aware of the loss he has received. shows the impacts it has had on the people around it as well. until gambling addicts are willing and have the desire to improve. and that way the rehabilitation process will be easier.
An addict is not someone who has lost their mind. So we have to direct the addict's thinking to see the truth of what is happening in his life. Rehabilitating gambling addicts is not easy. Gambling habits that have been carried out for a long time will not be quickly eliminated. all of them require a process to completely stop gambling.
Apart from that, you can also make gambling addicts aware by bringing them to a better environment and providing them with work that also aims to prevent them from gambling. But the point is, taking him in a more distant environment away from gambling and thus, sensitizing him to getting rid of his gambling addiction might also be successful. But if he still fails to stop gambling,then it is very possible for him to go to prison. Because with an addiction that can no longer be helped, it is very likely that the gambling addict will do anything to get money, whether it is committing a crime or other crimes. So it is very possible that people who are no longer able to be awakened from gambling addiction,are at least very likely to end up in prison because of negative activities.