Here is a fundamental Arm-In Guillotine Defense from closed guard that every BJJ student should know. It is based on maintaining proper posture and preventing the opponent from taking the necessary steps to execute the choke.

Pay special attention to how you “frame” your head to prevent your neck from getting pushed into the Guillotine.