I was studying a concept different from newtonian mechanics, but there was a concept which confused me. if work done by constant frictional force is considered in an experiment there are two values of it, one is -2J and another is - 5J, which one will be more? I think following integer rules is not correct here as - sign just shows that force is not in direction of displacement.
Negative work is just positive work with the energy repositories switched. "A does 5J on B", "B does -5J on A", and "5J of system energy was moved from A to B" are all the same statement.
Friction is a force by means of which energy is transferred from a system's kinetic energy (excluding thermal internal energy) to the system's total thermal internal energy. "Forces doing work" is misleading shorthand for one mathematical object that holds energy doing work on another mathematical object that holds energy by means of a force.
When your introductory text tells you that friction (with something attached to the ground or very massive) does -5 Joules work on Alice, you should mentally replace it with "5 Joules is transferred from the kinetic energy associated with Alice's movement to the system's total thermal internal energy by means of the force of friction."
Similarly for another common misleading phrasing: "the force of gravity does -5J work on Alice" should be "5 Joules is transferred from the kinetic energy associated with Alice's movement to the potential energy associated with the configuration of the system's masses (aka the gravitational field) by means of the force of gravity."
Negative work simply means the direction of the force on an object is away from the direction of the displacement of the object, i.e. the angle between the force and displacement vector is between 90 and 270 degrees. (In the case of negative work done by kinetic friction, it is 180 degrees.)
When a force does negative work on an object it takes energy away from the object. Kinetic friction is such a force. It takes kinetic energy from an object and dissipates it as heat at the sliding surfaces. The greater the negative friction work, the greater the energy taken from the object. Thus, -5J of kinetic friction work takes more kinetic energy away from an object than -2J of kinetic friction work.
Hope this helps.