It's not really that.
Since warlords cannot have story scripting because of the hardcoded things, we cannot lock the stuff out later.
So the best thing there is would be to make them era x above only.
For Era 5, it works as a single era, since there is nothing after it, but to other eras it does not work