Will you leave gambling if your future wife/husband tells you to do this ?
Your phrasing is very difficult to understand. It took me a while to understand what you mean, because I was expecting at least an additional verb or something in your post. What you mean is: Would you leave gambling if your future wife/husband asked it of you? And honestly? Yeah I would. A wife/husband is something completely different than simply a boyfriend and a girlfriend. You can find a million girlfriends but you can only ever find one wife. So yeah, I would leave gambling if she asked me to do that.
If that's what's best for family relationships, maybe I personally will also stop doing it, family is more important than anything else. We can't possibly change partners when we're married. Of course, for household harmony, it would be better to avoid things that will have an impact on financial conditions. Our partner knows that gambling is a bad act in society and maybe our partner doesn't want it to have an impact on us, so our husband/wife might prohibit it, which doesn't mean they are prohibiting it for their own benefit because what is certain is that the prohibition is for our good.
However, if you really want to continue doing these activities, it is better if you give your partner an open understanding and explain to your partner that you will probably use as little money as possible and tell your partner that this is just for entertainment and you can guarantee that it will not have an impact on your partner. family financial condition, maybe your partner will consider it rather than you having to lie and continue gambling in secret.