A. In all cases of mutual debts or mutual credits between the insurer and another person, such credits and debts shall be set-off and only the balance shall be allowed or paid; however, no set-off shall be allowed in favor of any person when either of the following apply:
(1) The obligation of the insurer to such person was purchased by or transferred to such person with a view of its being used as a set-off.
(2) The obligation of such person is to pay an assessment levied against the members or subscribers of any insurer which issued assessable policies, or to pay a balance upon a subscription to the shares of a stock insurer.
B. When a producer or other person purchases a policy of insurance for the unexpired term of the policy and takes an assignment of the unearned premium claim from the insured, this action shall not be considered as a purchase of an obligation with a view of its being used as a set-off.