Section 59. Whoever remains in a street or elsewhere in a town in wilful violation of an ordinance or by-law of such town or of any rule or regulation for the government or use of any public reservation, parkway or boulevard made under authority of law by any department, officer or board in charge thereof, whoever is in a street or elsewhere in a town in wilful violation of an ordinance or by-law of such town or of any rule or regulation for the government or use of any public reservation, parkway or boulevard made under authority of law by any department, officer or board in charge thereof, the substance of which is the drinking or possession of alcoholic beverage, and whoever in a street or other public place accosts or addresses another person with profane or obscene language, in wilful violation of an ordinance or by-law of such town, may be arrested without a warrant by an officer authorized to serve criminal process in the place where the offence is committed and kept in custody until he can be taken before a court having jurisdiction of the offence.