Section 3. If any offence mentioned in sections one and two is committed in Boston or Boston harbor, the penalty may be recovered by complaint in the municipal court of the city of Boston; if in Salem or Salem harbor, in the first district court of Essex; if in Fall River or Fall River harbor, in the second district court of Bristol; if in New Bedford or Fairhaven or in the harbor of New Bedford and Fairhaven, in the third district court of Bristol, and if in Gloucester or Gloucester harbor, in the district court of eastern Essex. Whoever commits any such offence may be arrested without a warrant by any officer qualified to serve criminal process in the town in which the offence may be tried, and he shall be forthwith brought before the court.