As Turkey presses its offensive against Kurdish militants in northern Syria, frontier towns are caught between the region’s warring rivals.