How Much Risk, Is Too Much Risk?

Our entire life is a gamble, so why is gambling a sin? How is it any different from making investments? (stock market, sports betting or otherwise)