President-elect gives 'red line' demand to Israel as well as Hamas