both trading and gambling has only a thin difference. but one shouldn't invest on any of these if they cannot afford to lose the money they are investing.
They are both risky, learn what you are investing so that you won't be scared on what's happening to your investment when it's chart is negative. And in gambling, you should know what you are playing so that you are aware that you know what you are taking in and you have bigger chance of winning but still you have to invest and gamble only what you afford to lose.