Lying is not good but sometimes letting others know the truth will be even worse. Some people say that we should tell the truth to our wife or family about our gambling but they are not in our situation, they don't know what we will face.
I think there is nothing serious about trying to hide our gambling from our loved ones as long as we are not addicted to gambling and causing trouble for our family.
In addition, everyone will have a certain level of privacy, and some personal space, and sometimes there are habits of ours that many people do not like, so there is no reason for us to let them know to avoid causing trouble for both parties.
I can't help but agree with you on this point. One person cannot know what the other person might have to go through if they do a certain thing. Every person will give you suggestions based on their understanding and mindset and not based on your thoughts and situations, this is why they say that we should listen to everyone, but we should do what we think is right because only we know what the situation can be and only we know doing what can be better at a certain time or situation.
I would never ask a friend to help me handle a situation with my wife because what's the point? She's my wife, and it's me knows her very well, so another person who is an outsider cannot help me in such situations, especially if it's about hiding something or telling her things that make her happy even if they aren't truth all the time.