Legal analysis: Whether it is illegal or not mainly depends on the agreement between you, whether there are company rules and regulations or a verbal agreement. The other party can lend money and the repayment will be borne by the company and the bank. It doesn't matter what the loan is used for. You can borrow money in the name of the company with a business license.
If your rights and interests are infringed, please report it as soon as possible to avoid irreparable losses.
Legal basis: "Company Law of the People's Republic of China" Article 20 Company shareholders shall abide by laws, administrative regulations and the company's articles of association, exercise shareholder rights in accordance with the law, and shall not abuse shareholder rights to harm the company or other The interests of shareholders; the independent status of a company as a legal person and the limited liability of shareholders must not be abused to harm the interests of the company's creditors.
If a company’s shareholders abuse their rights and cause losses to the company or other shareholders, they shall be liable for compensation in accordance with the law.
If a company's shareholders abuse the company's independent status as a legal person and the limited liability of shareholders, evade debts, and seriously damage the interests of the company's creditors, they shall bear joint and several liability for the company's debts.