Normally IA does not declare war on you unless you have a smaller army than he has. I'm not very sure if gold is taken into account.
So prepare in means of bulding barraks, etc, but keep your army small, then once he declared war, buy units quicky...
I usually have a very small army to cut...