protobuf: complain if dateutil is too new

Alternative solution to #32571; moots #33045.
Probably inline the above two as they are only used once.