Section 9. Whoever knowingly feeds or has in his possession with intent to feed to a milch cow any garbage, refuse or offal collected by a town, or by any person having authority therefrom, shall be punished by a fine of not more than one hundred dollars or by imprisonment for not more than two months; and whoever knowingly feeds or has in his possession with intent to feed to any food animal, except swine, any garbage, refuse or offal collected by a city of more than thirty thousand inhabitants shall be punished by a fine of not more than fifty dollars or by imprisonment for not more than one month.