Investing means you are swinging trades/options/stocks for future usage/benefit similar to a 10 years insurance payout. Normally investments are for those stable long-term blue chip companies.
Gambling is like betting on something that the payout probability is very low (like lotto, 4D, Toto, casino games). Revenge trading or lotto trading is also counted as gambling.