Whoever fails to comply with or violates any of the provisions of this chapter shall be fined not less than $25 nor more than $1,000 or imprisoned not more than 1 year, or both.