Turkey acts on right to 'protect its borders'