You must not exceed in defending yourself. therefore, you can use what is necessary to defend yourself but without going out of your way to be as evil as he is.
A lot of people would take this and consider preemptive attacks as legitimate ways in defending oneself while it is actually legitimizing hostility and attacking others.