A body is moving in the direction opposite to the force acting on it. The work is done:
against the force
Since the body is moving in a direction opposite to the direction of force, the work done is negative. Therefore, the work done is against the force.