Most classroom grammar rules are nonrules with no real authority
Dreyer identifies a cluster of famous prohibitions, never start a sentence with "and" or "but," never split an infinitive, never end a sentence with a preposition, and argues that none of them are actual rules of English; they were invented, often centuries after English had been functioning fine without them, by grammarians trying to impose Latin-style logic onto a language that doesn't work that way. He traces the anti-preposition rule specifically to writers who wanted English to behave more like Latin, where sentences can't structurally end that way.
His point isn't that anything goes, but that writers should stop flinching at constructions great authors use constantly. Confident, competent prose regularly breaks these supposed rules when doing so serves clarity or rhythm.
Takeaway: before you contort a sentence to avoid a "rule," check whether the rule is even real.