Ethics is not mathematics. A balanced equation of right and wrong does not justice make. The most dangerous individuals had the best intentions supported by earthly logic and balanced equations. It is not right to murder one innocent child to save the entire universe.
You must only commit good acts to prevent bad acts. Doing a bad act to prevent a worse outcome is still vile, contemptible, and a sign of our base nature – the nature which craves justification for our inner most demons. The devil is a logician too, after all. So despite your desire to help or save another, you mustn’t commit an evil act to do so.
The question is – can we live like that?