The best moment is before commitment or payment.
Before the decision, clauses, approvals and evidence can still be shaped. This is usually cheaper than a later dispute.
Have the wording checked in writing before you sign, release money or order work. This keeps room for negotiation.