They’ve been threatening this for awhile. I don’t think Erdogan would go through with his threats unless a major escalation occurred. The ramifications are too much for Turkey if they did invade Greece. Relations with the rest of the western world and EU would deteriorate and any hopes of them joining the EU would be dashed—they would lose more than they would gain in starting a war over some islands.