Section 24. Whoever puts an unclean or foul substance into any registered can, tub or cabinet shall for the first offence be punished by a fine of not less than fifty cents nor more than five dollars for each can, tub or cabinet with respect to which the violation occurs and for any subsequent offence by a fine of not less than two nor more than twenty dollars for each such can, tub or cabinet.