William warned against 'compromising his position' concerning Israel and Gaza