I think I know why he told you that but I’m not quite sure it applies to something like a crankshaft.
It was explained to me by someone who’s been doing it since dirt was new that it’s not advised to use an impact on a FWD axle nut, the shock transmits through the shaft(s) into the transmission and could potentially cause damage. I’ve never had a problem with it and the guy that told me said he’s only seen it maybe twice in 50+ years of working in the trade. Everyone uses an impact gun on axle nuts.