The only way to prevent Nougat from getting in is to close the door before her pillars have any chance of crossing the barrier.
Once she is inside the office, there is no getting her out.