Arabic does sometimes permit a pronoun to precede its referent in surface order; syntactic rank and the conditions of the construction can make such usage acceptable. Consequently, “every antecedent must always be mentioned first” is too crude a rule.
In the textbook case, the subject contains a pronoun pointing to a later object. The objections concern that specific configuration.
An academically sound method is to parse the verb, subject, object, and antecedent before evaluating which precedence relation actually holds.