There is a LARGE difference between good natured ribbing and outright shit-talking and making cutting comments about real issues.
I had just attended a meeting with both the week prior which had a bunch of good natured ribbing going both ways that they obviously enjoyed and i felt comfortable throwing a joke into the email about how the required firetruck turnaround we designed would satisfy fire dept requirements and also make the PD happy because it looked like a donut.