Evolution implications of neutron star magnetic fields: inferred from pulsars and cyclotron lines of HMXBs