We could solve that by banning/restricting gambling.
But it seems that's just a patch on the bigger problem: That our citizens are insufficiently educated to see what is ruining their life and stay away from it.
Sure, some people waste all their money on gambling. But others waste all their money on drugs. Or theme park rides. Or model trains.
Would it not be better to have better training not to waste all your resources on something that doesn't benefit you?