Getting a loan just to invest is very risky. Maybe it is good if you risked and took a loan after the big crash in March 2020 at the start of the pandemic but right now? I don't think it will give you profits if you loan to invest into crypto. It will only give you headache.
As for me and for most here, I think its not advisable to get a loan just to invest in crypto knowing that it is a volatile market and your initial capital might loss in just a couple of weeks. On the other hand though, there is no rules saying that you should not do it. Its just that its very risky.