President says if UK steps away from 'wrong actions' in Gibraltar, it will then get 'appropriate response' from Tehran.