True, investing and gambling are two completely different things, but they both include some level of risk and decision-making, notably the danger of losing money in the future. Diversification is one of the most important distinctions between investing and gambling.
Investing allows you to diversify your risk across all asset classes, whereas gamblers put all of their money into a single pot with no risk management in place. With this, you can easily distinguish a trader from a gambler.