Whoever, upon command refuses or knowingly fails to reasonably 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) (1994 Code, § 27-6-10) Penalty, see § 130.999