You are right this is why it is not good to borrow money you might just be destroying your life in the process after borrowing loans. Using personal funds is better
There is no surefire way to predict the market and this is why taking loans and investing money in the financial markets will always be a really risky decision, no matter what.