Infiltrate/Reinforcements vs walls

Reinforcements and infiltrate both say you can’t come onto the field within 6” of an enemy, does this count through walls or measure around them?