Section 32. Whoever throws or drops glass on a public way, or on or near a bathing beach, or on a public way, sidewalk or reservation in the immediate neighborhood of a bathing beach, shall be punished by a fine of not more than one hundred dollars or by imprisonment for not more than one month.