A person who refuses or knowingly fails reasonably, upon command, to aid a person known by him or her to be a peace officer in the following commits a misdemeanor:
(A) Apprehending a person whom the officer is authorized to apprehend; or
(B) Preventing the commission by another of any offense.
(Ill. Rev. Stat., Ch. 38, § 31-8) (Prior Code, § 27-4-3) Penalty, see § 10.99