If you sell the house to help your husband pay off his gambling debts, and it can change your husband's bad gambling habit, it is worth it. The problem is for people with a gambling mentality, because the mentality of winning makes it difficult for them to change their gambling behavior. If you don't give your whole life to them, it will be a bottomless pit.
My suggestion is that if you can maintain a complete family at such a high cost, you need to evaluate whether you have the ability to change your husband's gambling behavior. What if you can't and you still have a son? You need to discuss this matter with your husband and your family, and make a decision before making a judgment of right and wrong.