you should not make evil in order that good may be made from it
More simply, "don't do wrong to do right". The direct opposite of the phrase "the ends justify the means".
Original source re-released under CC-BY-SA.