I think there's a huge difference between "be careful" and "don't do that". The former is just reminding the child to be mindful of their actions, which is a good thing. The latter is saying to avoid anything that could get you hurt even a little bit, which is very much not.
Only speaking for myself, but more often then not I just don't have the patience to NOT say it. But I try most of the time at least.