You keep asserting this, but I remain unconvinced. Can you expand your "argument" from "It can't" to something a little less vague?
If a court could look at a situation and determine that it is evil, then what is the point of determining whether it is legal or not? What if you came to the conclusion that something is illegal but not evil or evil but not legal? You pretty much undermine the construct of law in the first place and the existence of the court itself