Whoever, upon command, refuses or knowingly reasonably fails to aid a person known by him to be a peace officer in:
(A) Apprehending a person whom the officer is authorized to apprehend; or
(B) Preventing the commission by another of any offense, commits a petty offense.
(ILCS Ch. 720, Act 5, § 31-8) Penalty, see § 130.99