Junior doctors offer prime minister “final chance” to avoid pre-election strike