Where an incidental claim exceeds the rate of its jurisdiction, the judge, if a party raises lack of jurisdiction, may either rule only on the original claim or refer the parties to litigate the whole before the court having jurisdiction to hear the incidental claim. However, where a counterclaim for damages is based exclusively on the original claim, the court shall hear the counterclaim regardless of the amount of the damages.
.