Legal analysis: Borrowing money for gambling is not fraud, but it is illegal. According to the law, if the lender knows in advance or should know that the borrower's loan is used for illegal and criminal activities, it is an invalid loan contract and is not protected by law. Therefore, if the parties borrow money for gambling, the creditor's rights are not protected by law.
Legal basis: Article 13 of the Provisions of the Supreme People's Court on Several Issues Concerning the Application of Laws in the Trial of Private Lending Cases is under any of the following circumstances, and the people's court shall consider the private lending contract invalid:
(1) taking loans from financial institutions for lending;
(2) lending funds obtained by borrowing from other profit-making legal persons, raising funds from employees of the unit, or illegally absorbing deposits from the public;
(3) Lenders who have not obtained the loan qualification according to law provide loans to unspecified social objects for the purpose of making profits;
(4) the lender knows or should know in advance that the borrower is using the loan for illegal and criminal activities and still provides the loan;
(5) violating the mandatory provisions of laws and administrative regulations;
(6) violating public order and good customs.