Something for all to consider in circumstances such those mentioned in the OP.. The FA (or CFA at lower levels), may also hand out a suspension to the official(s) concerned as they would be considered to be "wrong in law."
Many of us will thankfully go through the whole of our careers without being involved in such a situation.
A lesson to us all - keep studying the gospel according to IFAB and keep abreast of the finer details of the LOTG..