<human>:  When is it appropriate to use the phrase ‘Ends justifying the means’?
<bot>: The phrase is used to justify the use of any means to achieve an end. It is often used in the context of war, where the ends justify the means.