If it is an IP then don't do it.
The purpose of the loan will be to pay the money to yourself, and therefore not tax deductible.
To be tax deductible the purpose of the loan must be to purchase an income producing asset.
There may be a way around it that I don't know of, but I would get...