No person shall use barbed wire in the construction of fences, or have barbed wire upon existing fences, between his own premises and those of an adjoining proprietor, within twenty-five rods of any house or barn belonging to such proprietor, unless either premises are used in connection with raising livestock, without first obtaining his written consent. No barbed wire shall be used in the construction of fences, or retained upon existing fences, connected with or enclosing the grounds of any public school or public building, except a Department of Transportation storage facility or a vessel operations area of a state-owned waterfront facility or aircraft operations area of a state-owned airport. Any person who violates any provision of this section shall be fined not more than one hundred dollars.