When Napoleon invaded Russia, the Russians retreated. They burned their own crops and houses to deny him supplies. His army starved and that was one of the main reason he lost the campaign.
Antar wasn’t a cornered dog. They were a tired dog that was only making half-hearted attempts to kill the spider in front of them (and almost succeeded), then decided it would be too much trouble and instead went back to sleep.