Sentence:  What the devil's the matter with me? I don't stand right on my legs. Coming <WSD>afoul</WSD> of that old man has a sort of turned me wrong side out. 
Meaning of the word marked with <WSD> tags:  In a state of entanglement or conflict (with).