Answer:
See espplanation below.
Explanation:
The deduction of the formula given is this one:
We can assume that we have a constant force F acting on a point that follows a curve Y with a velocity v at each instant, we can define an small amount of work
who occurs on a instant dt and we can calculate it as:

And we have that Fv represent the power at the instant dt and we can sum all the small amounts for the work in the entire trajectory with the following integral:

And M represent the trajectory from
to 
If we assume that the force is constant so then we can do this with the integral:

Where
represent the displacement of the point along the curve.
We know that the fot product can be expressed on this way:

Where
represent the angle between the force vector and the direction of the movement, so in general we have this:

And as we can see F and
are scalars (assumed constant both) and not affect the sign of the work, so the only value that affect the sign of W is the angle since depedens of the cosine function who is maximum at 0 and 2\pi and minimum at 