The notion that one might be justified in behaving irrationally in the service of a sufficiently worthy end is incoherent
For if such an action is justified, then one would be behaving rationally, not irrationally
One cannot intend to spill a glass of water accidentally. Spilling it accidentally means that the act will not have been done intentionally.