I can imagine what he was going through but taking such horrible decision is very foolish of him. People commit suicide with the thought of ending the problem but unknowingly to them, they are just indirectly running away from their responsibilities for their relatives and loved ones to solve. There's a popular saying that if there's life, there's hope. Of course, life will definitely hit you hard sometimes but there is always opportunity to bounce back if you don't give up. It's very possible that very guy would have make more than that amount that he lost if he's still alive but unfortunately he seized all the opportunities by ending his life leaving gross pain behind for the family.
Majority misunderstood gambling as a place to double their money and thereby going extra hard with the amount they stake on the game without realizing that there is no guarantee of return of investment in gambling. The outcome of gambling is either you lose it all or you make some cent. However, the chances of losing is always higher and that's why you are advised to risk affordable amount. If every gamblers can be aware of this, cases like that of story in the Op would be very much rare.