The frontrunner in the race to become prime minister next week has pledged to leave the EU on 31 October "do or die".