According to the force law for SHM, if the displacement 'x' is positive, the restoring force 'F' will be:
The force law is F(t) = -kx(t). If x is positive, then F = -k(positive value), which results in a negative force. This indicates the force acts in the opposite direction to the displacement, towards the mean position. (NCERT, page 267-268)