A sentence where you begin parsing one way, find it it impossible to complete, and have to backtrack substantially (so that the intended meaning changes drastically) is called a garden path sentence
https://en.wikipedia.org/wiki/Garden_path_sentence
My favorite is "The old man the boat" :)