(a) It is unlawful for a creditor who is a citizen of the State to assign or transfer a claim against a resident of the State:
(1) For the purpose of having the claim collected by attachment in a court outside the State; or
(2) With the intent to deprive the debtor of his rights under the laws of the State which exempt his wages or property from execution.
(b) The provisions of this section do not apply if the creditor, the debtor, or the person owing the money to be attached is not within the jurisdiction of the courts of this State.