The Turkish president’s warning comes after protests in Sweden, including a Quran burning.