If the referee CLEARLY sees the coach INSIDE the box tag the coach OUTSIDE the box, then you have a legal tag. Otherwise the official will be prompted to escort the official outside the box BACK outside the box while the coach INSIDE the box gets hit in the head by a "foreign object".