I answered a similar question regarding this a few weeks ago here. I recommend reading both of the posts I made there, but in short: there's default map boundaries, player clip volumes that function as custom map boundaries, and safezone volumes that can function similar in limiting player functionality.