It's a mechanical transformation. "End a sentence with" <-> "with which to end a sentence". As I pointed out above, vacri's version turns into an obvious jumble after this equivalent transformation, which means the original is also a jumble. It's just a more difficult jumble to untangle, so you might not notice it's wrong.