When you inject after food the food will work earlier than the insulin, resulting in a high spike and than a drop. Injecting before food gives the insulin some time ahead so it catches the carbs as soon as they hit your system (or it should do that in an ideal world. With Fiasp it pretty much does, but with novorapid I had to inject at least half an hour before food to avoid a big spike before the insulin kicked in).
It's up to you if and how often you think it acceptable to have higher bg than nessecary. To me, it's acceptable every once in a while, on a special occasion or with exciting new foods.
With buffet-like meals I simply inject before every new food I pick/get served, so I won't need to know/decide what exactly I'm going to eat. For me, this works a lot better on Fiasp than on NovoRapid, though.