This post elaborates on the topic a bit more, and after reading it some time ago I ended up agreeing with its conclusion - that the phrase is OK from theoretical standpoint, for perfectly rational actors, but not for humans - hence the heuristic, "end does not justify the means".
http://lesswrong.com/lw/uv/ends_dont_justify_means_among_hum...
This post elaborates on the topic a bit more, and after reading it some time ago I ended up agreeing with its conclusion - that the phrase is OK from theoretical standpoint, for perfectly rational actors, but not for humans - hence the heuristic, "end does not justify the means".