Sometimes we can make things more complicated than needed.

One possible thought direction. If the correct sequence is A-B-C and R1 is your lock out device.

IF {NOT A AND (B OR C)} OR {IF A AND C} THEN R1