Enter alliances with your neighbors. I find that they are less likely to invade you that way.
However, you then have to watch for "wandering" armies of your allies.
Once I was playing as Rome and an allied Carthaginian army "wandered" up Italy and sacked Capua when I had moved its garrison out to deal with some pesky rebels.
Bookmarks