Wheat flour has been associated with outbreaks of enteric bacteria like Salmonella and E. coli. So the FDA says not to eat raw flour, even after home treatment. Although almond flour doesn't have the same risk, this cookie dough does have raw egg, which is of course also associated with risk for food-borne infections. Read more here about other surprising hazards in the kitchen.