Unless another penalty is expressly provided in this Code, any person violating any provision of this Code, or any rule or regulation adopted in the pursuance thereof, or any other provision of any code adopted in this Code by reference, including any provision declaring an act or omission to be a misdemeanor, shall be charged with a misdemeanor and, upon conviction, be subject to a fine and/or imprisonment in an amount or for a term not to exceed the maximums allowed by state law plus, in either case, the costs of prosecution.