Umm, AI invasion is utterly whack now. Before the patch, they didn't do it at all. Now, they do it every time.

Note that you can probably ceasefire with them if you want. Often, naval invasions are the result of a rogue general. They always invade and accept a ceasefire. Weird.