What timing is decisive in the Hajj invalidity clause?

Bab Jinayat al-Muhrim — Intimacy, Invalidity and Compensation (Part II)