In all actions founded on debt or other contract, if the plaintiff recover an amount which, exclusive of interest, is below the jurisdiction of the court, he shall recover judgment therein, but the costs shall be adjudged against him unless the plaintiff's claim, as established on the trial, shall be reduced by offsets below the jurisdiction of the court.
NMS § 39-2-4