Prime Minister Boris Johnson promised to take Britain out of the European Union “do or die” on Oct. 31, even if that meant risking chaos at the borders.