you can use the stupid old motto also : "offence is best defence"
annihilate your army before the enemy annihilate yours

anyway: I use hit and run tactics always works against infantry.
if you are addicted to cavalry dominated armies you just laugh slow moving phalanxes who are trying to catch your HAs with their 4.5 m long sarissas
even roman emperials have no chance against them.