The stock market is not a casino, but it can be if you treat it like one.