If you forestall someone, you realize what they are likely to do and prevent them from doing it.
O'Leary made to open the door, but Bunbury forestalled him by laying a hand on his arm. [VERB noun]
Large numbers of police were in the square to forestall any demonstrations. [VERB noun]
Synonyms: prevent, stop, frustrate, anticipate