Seems it's already been answered, but the operative word here is "justify". Only good things can get you any closer to Heaven, and good things need not be justified by their very nature. Something justifies something else if it turns it from a bad thing into a good thing. That the maxim only applies to evil means isn't a clarification or disclaimer attached onto it; it's just that only evil means would even need justifying in the first place.