Friction always acts to oppose any relative motion between surfaces.
If we push on the book with a force of less than 5 N, the book won't move, because the frictional force will exactly balance the force we apply. If we push with a 1 N force, a 1 N frictional force opposes us.