This is not possible at all. But they can cancel if they predict a market sell coming.
This depends on who is running the bot.
If it is a user of an exchange running their own trading bot, then they have no way of knowing that a sell is coming until it is already registered in the order book. Therefore, they cannot "see an order coming" and cancel their own order before the other one registers.
If the exchange themselves are running a bot trading the exchanges own bitcoins, then they can react before the order is added to the order book.
Additionally they can queue up multiple orders their own hidden order book for a short time (fractions of a second? a few seconds?) before adding them to the publicly visible order book. If they see overlapping buy and sell orders during this "pre-processing" time, they can insert their own transactions in between to take advantage of the inside knowledge and acquire risk free guaranteed profits for themselves.