Flirting with an intent to go further with it, is not safe.
But basic flirting is a human interaction as old as Java man. It's in our DNA. When it's playful and harmless, in a HEALTHY, MONOGAMOUS MARRIAGE, I don't see anything wrong with it, and furthermore I think if a spouse comes across as you guys are suggesting above -- by trying to, like, BAN it -- you're going to be seen as controlling, needy and jealous.