Whoever knowingly, without right is present, stands, walks, or rides a bicycle, snow vehicle, recreational or other vehicle on the right-of-way, bridge, or other property of, or used or controlled by any railroad corporation, except at a highway or other authorized grade crossing and except on rights-of-way formally abandoned pursuant to state or federal law and no longer owned by said railroad corporation or rights-of-way owned by said railroad corporation but which have been converted or leased specifically for use as a bicycle or walking path in accordance with state or federal laws, shall be fined $100 or shall be required to perform a total of 50 hours of community service which may include service in the operation lifesaver program, so-called. Any person violating this section may be arrested without a warrant by any police officer, including railroad police, and proceeded against according to law.
Mass. Gen. Laws ch. 160, § 218