It's a good example of a story where cleverness wins the day versus cleverness rather than versus fools. She's not particularly clever, though, she's just observant and surrounded by oblivious mice.
Message
Pay attention to what's going on around you so that dangerous things don't happen to you.