Eating maggots or maggot-infested food can cause bacterial poisoning.
Most foods that have maggots aren't safe to eat, especially if the larvae have been in contact with feces.
Some houseflies use animal and human feces as breeding sites.
They also breed on garbage or rotting organic material.