Erdogan warns US of harming its own interests, security