In some cases that's entirely appropriate, though not always, also an anecdote from the UK:
A policeman in a car pulled up alongside my friend on his bike, said do you know you clocked 45mph though that 30 zone.
"Er I'm sorry officer..."
"Don't worry, legally that limit only applies to motor vehicles. I wanted to say well done."