I consider trading as a professional activity. It requires analysis, research and others knowledges. Gambling you just require luck. But yes, maybe there is a thin line between then. It depends on how you do trading.
Though I have never done much trading but surely trading means buying and selling something but gambling is risking money on your decisions.
we never heard from some one that trading is banned in their areas but if we speak about gambling in most of the area we heard that gambling is consider as illegal activity in their area and is banned, and if some one caught playing gambling then he will be charge for it.
I've heard of places where gambling, in fact, is considered as an illegal activity. But I think there are just a few countries where it's illegal, in most of them trading is a legal activity, and I believe that governments are happy with this, since they have one more way to collect taxes.