I can't even imagine how a hypothetical well-intentioned judge who wanted to apply that provision correctly would proceed. The judge would basically have to choose between imposing their own personal view on good and evil or declaring the provision nonjusticiable.
Maybe the license could include a mandatory arbitration clause with an arbitrator who shares the author's values, but that still sounds like a terrible idea.