Family needs are the most important thing that must be fulfilled. Because there is no place for us to return to when we are in a difficult situation other than gathering with family. After all that is fulfilled we are free to do anything calmly without any pressure and it is very useful to control emotions in playing gambling.
But we still need to control ourselves in gambling even if we already fulfilled family needs because we don't know if our family needs other things. If we still have money, we can save it for urgent situations, and I guess that will not be recommended if we use that money for playing gambling. But if we have more free money which we don't really use, then we can use that money to play gambling. But we still remember that gambling will get our money until we don't have any money.