Something sounds really strange here.
It sounds as though possession of the Jellybeans was sanctioned, but that somewhere along the way the rules changed.
SOMEBODY SET ME UP THE JELLYBEAN!
Teacher: "Okay, children, today we will learn a lesson in self-control. You will find your inkwells are filled with jellybeans. I want you to take them out, one by one, and line them up on your desk in the proper color sequence, red, orange, yellow, green, blue, indigo and violet. Remember, you are forbidden to put one in your mouth."
Little Sally muses what the word, 'forbidden' means as she chomps down on the orange one. She is immediately thrown against the wall, body searched, cuffed, roped and tied pending the arrival of a medic with a stomach pump to retrieve the evidence.
As she was being dragged out the door by the cops, she was heard saying, "But you knew I was a five-year-old when you put the candy in front of me!"