152. (1) It shall not be lawful for any person to arrest an officer or a seaman under any warrant, process, or writ issued by any court in a suit for the recovery of a debt due from the officer or seaman, unless the debt was contracted when the debtor was not a member of the Navy, nor unless before the issuing of the warrant, process, or writ, the plaintiff in the suit or some person on his behalf has made an affidavit that the debt due to the plaintiff was contracted at a time when the debtor was not a member of the Navy, nor unless a memorandum of such affidavit is made on the back of the warrant, process, or writ.
(2) Where an officer or a seaman is arrested in contravention of the provisions of sub-section (1), the court which issued the warrant, process, or writ under which the arrest was made may, on complaint by such officer or seaman or by his superior officer, investigate the case and, if satisfied that the arrest was made in contravention of such provisions, may make an order for the immediate discharge of the arrested officer or seaman, and may award to him the costs of the complaint, for the recovery of which he shall have the like remedy as the plaintiff in the suit in which the warrant, process, or writ was issued would have on judgment being given in his favour with costs. *Restriction on arrest of officer or seaman for debt.*