The city and town councils shall affix penalties for the breach of the rules and regulations made by them, not exceeding three hundred dollars ($300) fine, or six (6) months imprisonment, for any one offense, unless provided by law, the fine to inure one-half (½) of this amount to the use of the complainant, and one-half (½) of this amount to the use of the city or town.