The easy thing to do is set a limit for how much and how long you can borrow against, tax the loans as income, or outlaw loans against investment instruments entirely.