this is your example "Example: killing a man whose about to kill other people isn't bad, because you save lives."
what if the man who is about to kill other people are justified to kill the other people, then killing him wouldnt be justified would it?