A preposition is a word, like with or to or of, with which one should not end of a sentence — if you’re speaking Latin. Since (if you’re smart) you’re not, you may put your preposition wherever you damn well please.

Like the pendant’s aversion to split infinitives, this is a bogus grammatical rule to boldly be dismissive of.