Dad was a machinist. When at work or working in garage, etc he wore a cap with the bill turned up in front like you see some of the bicycle riders do...
Said it was to keep from bumping his head. The idea being the bill flipped up works like a low hanging object feeler.