Any acting within the state that is not based on this end may be materially legal, in the sense that it may nevertheless further the end of establishing the rational state, but it is nevertheless formally contrary to duty.