The United Kingdom has threatened to expel 27 Israeli diplomats should Tel Aviv move to shut down the East Jerusalem consulate.