I believe that once you have a family, it is necessary that you will focus more on them and their needs. If you know that your gambling habit will have a big impact on having your own family, you will come to the point where you will have to choose who you need to let go of, surely you will choose your vices, right? It's hard to do especially when you're used to it, but it doesn't mean that once you have a family you will immediately break your habit, you have to go through the right process to get rid of it more smoothly. I know others whose parents are addicted to gambling and that's when I saw the impact of what they do on their children. There are other children who imitate their parents, some of them do not have a good relationship to their parents and the worst is having a broken family because of the vices of the parents.
When we have a family, in my opinion, we should focus more on our family relationships, even though we don't have children but if we are married, I think we should put aside our habits, especially habits like gambling that only allow us to lose money, because otherwise there may often be problems with family relationships because of unstable finances that are only spent on our gambling habits. Unless you can make consistent profits, but with gambling, there is no profit that can be obtained consistently. But maybe there are people who still prioritize their gambling habits even though they are married, but maybe there will be more frequent conflicts. That's the fear.
It's true what you said, if we still like to do gambling habits and we and we are at the point where we have to have a family or a habit then what will happen is most likely that we choose our habits, because I often find when families have problems they end up separating because they prioritize their own ego, that's what I often find including in my environment. Also what I'm afraid of in my opinion is that this habit can be passed on to our children later, it's terrible because it will damage their future.