el fin no justifica los medios

Etymology
lit. 'the end doesn't justify the means'. Compare.

Proverb

 * 1) two wrongs don't make a right, the end doesn't justify the means