> loans are only at 3.5%, but you can earn 7% on the stock market
This isn't prudent asset-liability matching. If your loan is 3.5% and you can find investment-grade bonds that (a) yield more and (b) compensate you, in the spread, for your risk and hassle, then that might work.