I disagree with your last sentence. Because of the problem in Syria our borders are not secure and Turkey is trying to solve this problem diplomatically for a year.
Recently ISID threatened Turkey to attack Sulaiman Sah and after that government started to think about a military attack to that area.
You can't just say "they want to attack Syria to strength Erdogan's position."