The story uses the word "scorpions" to symbolize the fear and danger that Greg faces in the abandoned building. The boys are described as "big and mean," and Greg is terrified of them.
While the word "scorpions" doesn't appear in the text itself, it is the common understanding of what the "boys" represent within the story.