All judgments, securities, bonds, bills, notes or conveyances, when the consideration is money or property won at gambling, or at any game or gambling device, shall be void, and may be set aside or vacated by any court of equity upon a bill filed for that purpose, by the person so granting, giving, entering into or executing the same or by any creditor or by his executors, administrators, or by any heir, purchaser or other persons interested therein; provided however, that the holder in due course of any such security, bond, bill or note which is otherwise negotiable holds such instrument free from any defect of title of prior parties, and free from defenses available to prior parties among themselves, and may enforce payment of such instrument for the full amount thereof against all parties liable thereon.
NMS § 44-5-4