Some of the posters here may be conflating two separate entities ie TBC (transfer balance cap - the amount you can transfer into a pension account, currently $1.7M) and TSB (total superannuation balance, confusingly also $1.7M).
Once you have reached a TSB of $1.7M, the only contributions you can make are concessional contributions - limited annually to $27,500. Therefore regardless of your age/pension/working status, once you have reached a superannuation balance of $1.7M, your superannuation can only grow by the annual concessional contributions (including bring forward contributions) and investment returns. Your superannuation balance (either in accumulation or in pension phase) can certainly reach $5M but only through investment returns, not contributions alone.