How this bot working?

Buy Binance Transaction Hash (Txhash) Details | BscScan
Sell Binance Transaction Hash (Txhash) Details | BscScan
Look this tx. How its bot buy and sell this rug sc? I wanna too sell it. And how it can work?(bug contact or what)
And how contract can avoid bots?