Work is defined as the product of force times the distance. Taking in the effect of friction, the equation of input work will look like this:
input work = work against friction + output work
25 = |w| + 10F
Considering that friction exists, then |w| > 0:
25 - 10F > 0
Therefore:
F < 2.5 N