Appropriate action has been taken against the user for his repetitive harassment directed towards you.
This doesn't allow you, the victim in this case, to then break the rules as well. You were not punished for defending yourself, you were punished for breaking the site rules, of which details can be found in the pm you received about it.
If you have further questions about this specific situation, please don't hesitate to pm me
Thanks!