I think its much better invest than to gamble, because investing is not so risky and you can earn good profit. But they are both risky, but on investing you need to wise. I think its better to invest because its safe and surely the money will not lose and expect good profit. To gamble is a game of luck whether you lose or win. I go gamble only when i have free time and its just fun an entertainment.
Gambling required experience to win money, but the investment is one time if you spend time life long you will get profit.
Both are not correct because you need an experience or knowledge about the investments to make money and there is no guaranty that you will get profits always from your investments.
Also, there is no guaranty that your experience will give you profits from gambling because based on my knowledge only luck can bring you money in gambling, not the experiences and tricks.in my opinion experience in gambling will help you a lot to gain profit, you had learned a lot from your mistake, the experience will help you to control your emotion, knowing when to stop then cash out the profit, keeping mind calm, not affected by greed.
Experience is not the main key to be successful in gambling, I can play for 10 years but if I am not good enough in choosing my bet then for sure I will still not gonna progress as a gambler and maybe the opposite will happen and with that span of time I'm losing enough money. Maturity along with knowledge will give you a good chance of winning but it's not guaranteed as you also need to control your emotion.
Of course, knowledge has a role in gambling mostly on sports betting, it will help you to choose where to bet, analyzing before you choose the bet will help you to have an insight of the outcome. But dice based gambling and etc doesn't require analysis/knowledge it's based on pure luck, so experience and maturity to control greed and emotion play a lot.