Usually it is not a good idea to flirt if you are married. First, you could be sending the wrong message to the other person. Also, some men can’t stop at flirting. When they send the wrong message to the other person, they let the flirting go too far. Their flirting may also make their wife feel bad like she isn’t good enough for her husband.
Therefore, it is best for a married man to not do healthy flirting. There is a way to be nice and have fun without showing interest in someone. However, if both wife and man are okay and honest about their flirting, then I don’t see a problem with it. Both parties must be honest with each other about the flirting though.