(a) Enforcement. It shall be the duty of the sheriff of the county to enforce the provisions of this article other than those relating to the issuance of permits. (b) Penalties. Any person who knowingly violates any of the provisions of this article shall, upon conviction, be punished as provided in section 1-12.