It is illegal to buy funds with consumer loans. Because according to regulatory requirements, bank credit funds may not flow into the securities market in violation of regulations. The bank will recover the loan if it finds out that it bought the fund with the consumer loan. It will also cancel the installment business of other loans or credit cards under the user name, and it is necessary to immediately settle the amortization principal and installment fee of the remaining installments.
It may also enter the blacklist of banks, and if you want to make a credit loan again, you may not get the approval of the bank. So, don't borrow money to buy funds.