What is the origin to fight fire with fire?

its a term used in wild land firefighting, where firefighters will burn large areas of land against the wind in order to create a wall of burnt area to stop the fire.