Personally I believe the biggest difference between gambling and investing comes down to the ability to limit your losses and the possibility of unlimited growth. Your winnings when gambling are limited to the odds whereas investment have no fixed ceiling.
Another important factor i think is that investments constitute longer term goals whereas gambling targets short term gain or speculation and therefore i feel even stocks/forex/crypto's can be a gamble when speculating on short term situations.