At the top of the chain, the wife has borrowed money using her house as security ... her house is at risk if she cannot repay the bank.
Lending/giving money to husband to invest = sexually transmitted debt that needs independent legal advice for the wife. Quite often a naive or ratbag spouse...