Short answer: An outlet may be an exit from a wall void. Find the exterior route first; do not spray or work inside an electrical box.
Think of the wall as a pathway
Scorpions can enter wall voids around doors, pipes, conduit, weep-screed areas and roof eaves. From there, they may appear around electrical faceplates or pipe collars.
Check the outside of that wall
Note the room, wall and time of sightings. Outside, inspect A/C lines, irrigation and cable entries, hose bibs, doors, stucco transitions and screens along that side.
Keep electrical work separate
Do not spray liquid into electrical boxes or insert material into an outlet. Address exterior entry points first; qualified electrical or exclusion work can handle any interior finishing detail later.
Common questions
Does this mean scorpions live in my wall?
Not necessarily. The wall can be a route, and the original opening may be outside.
Should I caulk every outlet?
Not before locating the exterior route. One outlet cover is rarely the whole answer.