Street food risk is real but very manageable, and skipping it entirely means missing half the point of many countries. The genuine hazards are less about the stall being humble and more about specific practices: water contamination through ice, raw sauces and washed salads, food sitting lukewarm for hours, and hands that touch cash then food. Freshly cooked items served straight off high heat are safe almost anywhere, because thorough cooking kills what matters.
Reading a vendor takes about thirty seconds once you know the signs. Good ones: a steady queue of locals, high turnover so nothing lingers, food cooked to order in front of you, a separate person or hand for money, clean prep surfaces, and oil that looks reasonably fresh rather than black. Bad ones: pre-cooked food sitting in the open, flies, cut fruit displayed unrefrigerated, and an empty stall at mealtime in a busy street, which locals are avoiding for a reason.
Give your stomach an adjustment week before going adventurous, start with vegetarian and fried items, peel fruit yourself, and carry hand sanitizer. Locals eat this food daily; the queue outside the best stall is both a safety signal and a restaurant review.