Asked January 03, 2016, 9:45 AM EST
Photo attached next to a metric tape measure.
Montgomery County Outside United States
Yes, those are fruit fly pupae. Yes, it would be safe to eat the figs. In reality we probably gobble down more fly maggots than pupae than we care to talk about. The gut system of a healthy human will take care of most creatures that we swallow anyway.
Having said that, I would follow sanitary practices when eating raw fruits and vegetables anyway. Thoroughly wash, use clean cutting surfaces & utensils, refrigerate or cook immediately. Chances are fungal and bacteria contamination is far more common and far more threatening anyway.