If you have a better investment project, the income is determined to be higher than the loan interest rate, and it is reliable, you can choose to invest;
Besides, consider your recent financial arrangements. For example, whether there is the possibility of emergency expenditure, etc.
The above suggestions are for reference. I suggest you consult a financial planner and work out an investment method that suits you.