I would hope it's not just invisible walls.
I would prefer a system where maybe your units can't traverse ocean in Antiquity and you can only travel so far from borders you control, simulating some sort of limited lines of communication/supply chains/etc. If you're conquering/expanding you could still make it pretty far in Antiquity (like Alexander the Great making it to India).
Once Age of Exploration hits, oceans open and how far you can travel from friendly borders (not just your own, but allies count as well) greatly expands, but it's still not infinite and can be expanded with outposts/ports of call.
Once the Modern Age hits it's movement without limits.