You can read all kinds of adult themes into this if you want to, but it's clear that the author did not intend them. This is just a children's book that is no longer in context. I can't ignore the creepiness, but walking through a dark hallway is creepy. But there's nothing inherently creepy about a dark hallway. It's just your own imagination that makes it that way.
Message
Parents still love you, even when they get mad.