No person shall throw any object at a motor vehicle or at a person in such motor vehicle or on any highway, which may cause injury to such vehicle or the tires thereon or to any person therein. Any person who violates any provision of this section shall be fined for the first offense not more than five hundred dollars and, for each subsequent offense, may be imprisoned for not more than sixty days.