Nothing is wrong or right in this life. Right and wrong are just a perspective, but if you put it that way, it will be called "Misbehavior". To clarify, you did not know how to behave in order to get a good result. Gambling is tricky, once you enter its field, you became paralyzed. It is like fighting monsters in a huge jungle. If you know how to behave and be smart, gambling will be beneficial for you. You will earn much money. So, it is up to you to decide whether or not it is beneficial.
At least it is right or wrong for you personally , you have the rights to consider whatever it is.
And gambling for most people who gives opinion it was a wrong action at all to make money .
Why? People is so vulnerable to get addicted when it comes to a game that involve money.