is it legal in your country to enter such places without authorisation?
No it's not legal but it's also not considered a criminal act. The cops will tell you to leave, unless you get an arsehole cop, then they might take you down to the station for a few hours for little reason than to be a dick.