هَذَا إِذَا كَانَ الْمَحْذُوفُ مَنْوِيًّا لِلْمُتَكَلِّمِ، وَإِلَّا لَكَانَتْ مُعْرَبَةً.
Translation: This applies when the speaker intends the omitted complement; otherwise the words are declinable.
The book conditions this construction on an omitted yet intended genitive complement. Not every occurrence of qabl or baʿd is therefore indeclinable.