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.