On the West coast of the US, in many places, they allow homes back from the beach, but on the beach, which do not impede the public from hiking along the beach from one end to the other.
If they close off the beach with fences, then the public cannot stroll the beach. I don't
know what the configuration is here, but I would not think it a good idea to fence off the beach so people can't walk it.
It's the glory of Seattle (which has many Norwegians) that the 20 mile long Lake Washington can no longer be built on, except back from the walkable beaches, where anyone can stroll. If a law had not been passed to enforce this, wealthy people would have built their homes right across the walkable beaches and stopped people from strolling by. Seattle is very beautiful and is supposed to be like Scandinavia.