In one Czech action novel there was a scene where the main character, a vampire running away from pirates who were enslaving vampires to make them the fighters when robbing the ships, needs to get away fast, so he stowaways on a ship that traffics humans. I can't remember details but I think the sailors were treating the people extra bad and he got angry, fought and killed the sailors and took the captain prisoner.
The trafficked people wanted to lynch him, but he tells them it would be revenge and it's wrong
He then proceeds to interrogate him, get info, money, maps, whatever from him, then he sentences him to death for his crimes and shoots him.
Revenge - no. Justice - yes.