ANKARA, Turkey — As Egypt’s Islamist demonstrators faced an imminent confrontation with security forces in Cairo last summer, the advice they received from Turkish officials was adamant: Stand your