A Palestinian man who allegedly called for the slaughter of Jews has pleaded guilty to attempting to enter the UK illegally.