Prioritizing family needs is one way to manage our minds so that we don't place too much emphasis on gambling and the way you say is also very good when gambling is used as a hobby which will be done when we have money left over that is not used and even when we have money left over but our minds are always thinking about the daily needs for the family, he certainly would not use the money to gamble because he felt that he would really need the money in the future.
So all of this must be trained from our minds which always think of prioritizing something more important than gambling.
When a gambler prioritizes something that should be just a hobby over the needs of their family that is a clear sign that they are addicted or at least on their way to be, and this should be also a very alarming sign for the gambler as well, as they should know that once they do this and they do nothing to stop themselves then almost all limits on their behavior will be broken and they will do anything to keep gambling, a path that could eventually land them on jail.
If a gambler has crossed this limit, it is certain that this is a sign of addiction and if he is not aware of the signs addiction it will be very dangerous because I am sure that in the short term he will experience bad things or at least spend all his savings and from this story how important it about our own awareness that is better to stop gambling forever or have to continue gambling with all the risks and in this concept what I mean a gambler who is not ready to accept all risks and still has to stick with his commitment not to be addicted and if someone not ready to accept everyone would prefer to stop gambling as soon as possible.