A country the size of Pakistan should never allow itself to come this close to the edge of catastrophe.