Start the level on the easiest difficulty. Focus on the soldiers attacking the ballista and don't worry about the ones that aren't as you progress through the gates. That ballista can take a battering but better to keep as much attention away from it as you can.