This would work if and only if the dividen is greater than the interest.

Investment in most businesses/stockmarket cannot garantee dividens (vary with market conditions), but loan interests will be some 2-4% on top of the Reserve Bank's rate (to cover the cost of money, administration overheads, profit margin and risk of not getting loan-out money back),...

In good years, dividens (from sharea) can be greater than interests on loan (to buy the shares).

In bad years, dividens cannot cover the interest and it hurts more when the shares we bought for 100 baht, is now worth less than 100-inlation baht (because it is not paying dividens! And inflation things we could have nought and used with the money now cost more.)

Many people who deal in Gold futures can give more good/bad stories.