The Chemistry and Magnetism of Young and Old Intermediate-mass Stars Observed with CRIRES