Do not say, “I will do to him as he has done to me; I will pay the man back for what he has done.”
Proverbs 24:29 ESV

The point of "an eye for an eye" in God's Law was never to return evil for evil, but to ensure restitution. It's wrong to hurt someone who hurt you, but it's not wrong to make them restore you as much as possible.