Gambling - mathematically, you're going to lose over time. This is why blackjack, the lottery, and sports betting are gambling. Every system that has payouts based on what people put in, minus a cut for the bookie, is in this category.
Investing - the mathematical odds are in your favor. Stocks, real estate, etc., as the payouts are based on the ongoing creation of value.