Ilkley voters warned of extremism dangers