Somewhere between level 10 and 14 is where it should stop.
Then, have different modules depending on where the group wants to go.
Some kind of mythic module for those who like amazingly powerful protagonists and one module that is more about characters gaining reach in the world (domain management and stuff like this).

(Dungeons & Dragons)
Rulebook featuring "high magic" options, including a host of new spells.