Her blunders come about because of unfamiliarity rather than stupidity. As Carroll sees it, the world of children is a dangerous one. Not knowing the rules, however foolish or arbitrary those rules may be, is a source of great peril. Alice's Adventures in Wonderland is shadowed by hints of death, and death is a recurring theme of both of Carroll's books. But even here, at the start of Alice's adventure, we are reminded of the frailty of humans and of children in particular.
Death is still a possibility.
A moment later, Carroll treats us to a very macabre joke. Alice makes another unknowing allusion to her own death when she peers into the tiny door. She is referring, unknowingly, to her own decapitation. The moment is both an allusion to death and a bit of foreshadowing. At the end of the book, the Queen of Hearts will try her best to separate Alice's head from her shoulders.