Meaning of “foil” - Learner’s Dictionary

foil

verb [ T ] uk us /fɔɪl/

to stop a crime, plan, etc from succeeding, or to stop someone doing what they want to do:

This device is designed to foil car thieves.

(Definition of “foil verb” from the Cambridge Learner’s Dictionary © Cambridge University Press)