(d)in the presence of any person in arms against whom it is his duty to act, shamefully casts away his arms or his ammunition or intentionally uses words of any other means to induce any reserve police officer or any police officer to abstain from acting against any such person in arms, or to discourage such officer from acting against any such person in arms or who is otherwise guilty of cowardice or misbehavior in the presence of any such person in arms; or