The Fourier pseudospectral method with a restrain operator for the Korteweg-de Vries equation