If you borrow against your home to invest you don't lose your home if the investments tank, you only lose your home if you can't make the loan payments.
Yes, but lets hope your income is not based on investment success and that your job is still safe even in a market crash. Of course, if you have a steady, locked in income from a very safe pension or trust fund, then go ahead and borrow on your home. You don't have to worry about losing it in that case.
But you only have to go back to 2008-2009 to see how well that worked out for a very large swatch of the American populous.