For me I Think online gambling is more safe than real life gambling, especially if in your country gambling is illegal, because if you are gambling in real and you get caught by police, jail is waiting for you.
How can you say that online gambling is more than safer than real life gambling? In my country real gambling here in really legal because they have paper to run there business. In online gambling you do not know if you win the big jackpot and they manipulate it or change the rules term and condition then you wil not get what you've won.
In your country gambling is legal means then no issue you can play you will not get any issue in online or real gambling. Because you are just a player not an owner of the casino. If the gambling is legal in the country, then I think for players there is no restrictions are there, But yes the feeling and rules and conditions are different in both real and online gambling.
In my country casino poker games are very legal and you will not get arrested by playing this kind of gambling even if real gambling we can freely play with our mates or our friends but some of gambling here are had age restirction you can't play when you are under age or not 18 years old.