Detecting and Deterring Manipulation in a Cognitive Hierarchy