The council may provide in any ordinance for the punishment of those who violates its provisions. The punishment for the violation of any city ordinance shall not exceed a fine as prescribed by State law, or imprisonment as prescribed by State law, or both, at the discretion of the court.