The barrier wasn't meant to be crossed

The barrier wasn’t meant to be crossed.

What does it mean?

The barrier was built to stop crossings.