Investing on margin isn't necessarily gambling. But you can draw some parallels between margin trading and the casino. Margin is a high-risk strategy that can yield a huge profit if executed correctly. The dark side of margin is that you can lose your shirt and any other assets you're wearing. One of the only things riskier than investing on margin is investing on margin without understanding what you're doing.
http://www.investopedia.com