One of the reasons that being harsh to mean people isn’t terribly effective, but infact that people learn most through personal experience or by observation of others.
Giving someone a taste of their own medicine is very unlikely to teach them anything new or show them that there’s a better way.
By being harsh to mean people, you’re simply showing them a behavior they’re already familiar with. All your negative actions do; is demonstrate that you can stoop to their level. And now instead of just one person acting bad, there are two. Rather than solving the problem, it makes matters worse.