(1) A foreign vessel passing through the territorial sea shall not be stopped or diverted for the purpose only of the exercise of any civil jurisdiction in relation to a person on board the vessel.
(2) Subject to subsection (3), a person shall not arrest or levy execution against a foreign vessel passing through the territorial sea for the purpose of any civil proceedings, except where the proceedings are in respect of obligations or liabilities assumed or incurred in relation to the vessel in the course or for the purpose of its voyage through the territorial sea.
(3) Subsection (2), in so far as it prohibits the arrest of, or levying of execution against a foreign vessel, shall not apply in the case of a foreign vessel which is lying in or passing through the territorial sea after leaving internal waters.