A block of mass 2 kg is attached to a spring of force constant k=10 N/m as shown in the figure. Find the range in which the block can be kept without slipping when the block is pulled or pushed towards the spring (spring is elongated or compressed). Take g=10 m/s2.