Ways to stop players just exploring the whole map

Sometimes my players just start messing around the map and go to areas I'd rather they didn't. especially if I don't put doors in the way. GMs need ways to stop them from doing so.ย