Neither gambling nor trading, nor, in fact, any other business is a good idea if you are going to start it with the money you borrowed. The probability of it not ending in a fiasco is one in a thousand cases. First you should earn the money and after that you can do whatever you want with it. Besides, if you earn the money by yourself, you value it more, and it is less likely that you will risk it all thoughtlessly.
Perhaps it's the other way around? Perhaps we value it more because we know that the money doesn't belong to us and if we lose it, we have to pay for it? Not really sure about gambling and trading but in business, people usually take loans from the banks to start a business. It has become rather normal that we take a loan for emergency purposes but the main purpose of a loan is so that people will have money to start a business. They require a business plan so they will have an idea of what business you're going to build and if it's likely to be successful or not. This way, you also get to know the falls of your business and what are the reasons why it might be a bad decision to start that business.
Nonetheless, it's better to risk your money only so you can only go bankrupt (zero balance). Starting a business or pretty much just risking money that you have borrowed and losing it all will put you in debt (negative balance) and it's a lot harder to start from there than zero balance.