You are sourrounded by ennemies, even if you acted morally, the other countries would find something to say about you. And since you don't act morally, they have a legitimate reasons to criticize you. Turkey is working with the Kurds now. Violance has ended in the Kurdish region. There is still a lot to do but Turkey isn't destroying their homes, imprisoning them without reason or stealing their land for some time now.
Libya rival government calls for regional conference to tackle migrant influx (Reuters)