(a) The town or city council in all cities or incorporated towns in this state are authorized and empowered to prescribe penalties for all offenses in violating any ordinance of the city or town not exceeding the penalties prescribed for similar offenses against the state laws by the statutes of this state.
(b) It shall be unlawful for any town or city council in this state to prescribe, by city ordinance, less severe penalties for all offenses in violation of any ordinance of the city or town than are prescribed for similar offenses against the state laws by the statutes of this state.