If you foil someone's plan or attempt to do something, for example, to commit a crime, you succeed in stopping them from doing what they want.
双语例句
例: A brave police officer foiled an armed robbery by grabbing the raider's shotgun.
一个勇敢的警员夺过歹徒的猎枪,挫败了一起武装抢劫。