Very simple if they have lets say 1k traps then you bring in first wave with 1k workers to set off the traps then bring your second wave of troops to finish the job..
Note: If they have there gates closed then you can plunder them without bother of there troops interfering..