As someone else said: food softens the enamel and makes your teeth more vulnerable so brushing right after breakfast may cause way more damage. I always brush my teeth before breakfast and almost never have any problems with my teeth. I know that my friends who frequently need treatment for their teeth brush them after breakfast.
But that’s of course anecdotal evidence that doesn’t say much, and I’m no dentist, so I may be wrong.