Not to do something is done contrary to the natural or normally effective sequence of events.
John Heywood’s A Dialogue conteinyng the nomber in effect of all the Prouerbes in the Englishe tongue, 1589: To tourne the cat in the pan, Or set the cart before the hors.