Yeah, Turkey is in Syria, because millions of refugees flocked to Turkey.
Turkey is in Libya, because Libya's legitimate and legal government wanted the help from Turkey. Turkey has agreed because his demand was profitable for Turkey's interests(there is nothing illegal)
Turkey is in Azerbaijan...