"The ends justify the means" means that if the final goal is considered good or important, then any method used to achieve it even if dishonest, cruel, or immoral is seen as acceptable.
"I write differently from what I speak, I speak differently from what I think, I think differently from the way I ought to think, and so it all proceeds into deepest darkness."
— Franz Kafka