Observational constraint from the heaviest pulsar PSR J0952-0607 on the equation of state of dense matter in relativistic mean field model