In a literal level, the theme of "LIttle Red Riding Hood" is that kids should obey their elders and not talk to strangers.
Since the story has many versions, the quotation that best explains the theme is when Little Red Riding Hood's mother tells her to stay on path in her way to grandmother's house, to not dawdle along the way and to not talk to strangers.