Context is important. When someone keeps playing dirty and you find yourself losing to them because of that, sometimes it's important to show that you can play dirty too.
I just think that the losing side, when adopting similar moves, is not playing dirty per se. It's just leveling the field. You can only play foul if both players share, at least superficially, a similar moral framework.