My answer is in two parts.
The first part tries to explain in terms of energy and work done what is going on when a mass falls towards the Earth and the second part is a commentary on the statements made by the OP in the question.
There are two things that you should be clear about.
In such a discussion you must define the system under consideration.
In this case is it the object or the object and the Earth?
This is important because you need to be able to identify internal (to the system and coming in Newton third law pairs) forces and external forces.
There is a world of difference between the gravitational potential at a point and the potential energy of a system of objects.
The gravitational potential at a point is the work done by an external force in taking unit mass from a position of zero potential to the point.
The gravitational potential energy of a system of objects is the work done by external forces in taking the objects from old positions where the potential energy is zero to their new positions.
Consider an object of mass $m$ as the system and the object is situated in the Earth's gravitation field which for the present assume to be uniform and have a strength $g$.
There is only one external force on the mass which is the gravitational attraction of the Earth of magnitude $mg$ and directed downwards.
If the mass starts from rest and falls a distance $h$ to reach the surface of the Earth then the work done by the gravitational field (external force) on the mass is $+mgh$.
It is a positive quantity because the external force and the direction of travel of the mass are both in the same direction.
The work energy theorem tells you that this external work done on the mass results in a change (increase) in the kinetic energy of the mass.
Note that potential energy and potential have not been mentioned.
If the gravitational field is not constant then the initial magnitude of the force on the mass $m$ is $\dfrac{GMm}{(R+h)^2}$ where $M$ is the mass of the Earth and $R$ its radius.
The final magnitude of the force is $\dfrac{GMm}{R^2}$ so to evaluated the work done one must do an integration.
The work done by external force on the mass is $GMm\left[ \dfrac 1 R -\dfrac {1}{R+h} \right] = \dfrac {GMm}{R}\left[ 1 - \left( 1+\frac hR \right )^{-1} \right] \approx m\, g\, h$ if $R\gg h$ and the gravitational field strength $g =\dfrac{GM}{R^2}$.
Now this could have been done by using the idea that the mass $m$ finds itself in a gravitational field due to the Earth and at a distance $r$ from the centre of the Earth the potential is $- \dfrac{GMm}{r}$ having taken the zero of potential to be when $r$ is infinity.
The potential energy of the mass $m$ changes from $- \dfrac{GMm}{R+h}$ to $- \dfrac{GMm}{r}$and so the change in potential energy of the mass is $GMm\left[ \dfrac 1 R -\dfrac {1}{R+h} \right]$ the same value as the work done by the "external" force acting on the mass $m$.
However we now have a system of two masses, the Earth and the mass, and the gravitational forces of attraction (there are two - force on mass due to Earth and force on Earth due to mass) are internal forces but because $M\gg m$ the Earth does not move only the work done by the force on the mass due to the Earth is considered.
It is the mass and the Earth system that have gravitational potential energy.
The statement "that work done by the internal gravitational force on the mass due to the Earth" can be put in another way - "the mass (and Earth) system lose gravitational potential energy"
Note that I have added words and symbols to some of the statements as indicated by [square brackets].
If the object is gaining kinetic energy as it moves towards the earth,
it is also losing gravitational potential [energy] (since potential [due to the Earth]
reduces as the object goes towards the earth).
This statement is correct.
So, the net change in energy would be 0.
This statement is correct if by energy it is meant the sum of the kinetic energy and the gravitational potential energy.
Hence, the formula -GM[m]/r can only represent the work done by gravity,
not the object itself.
This statement is "correct" if by gravity it is meant "the force on the mass due to the gravitational attraction of the Earth" as the gravitational field of the mass cannot attract the mass itself but the negative sign should not be there as the gravitational attractive force on the mass due to the Earth is in the same direction as the movement of the mass.
Otherwise, gravity isn't doing any work in the first place. Ergo,
gravity is doing negative work as it is attracting an object from
infinity to any point r.
This statement is not correct as the gravitational force on the mass due to the Earth is downwards and the mass is moving downwards so the work done by this gravitational force must be positive.
One problem with what is written is the interpretation of the word gravity.
Is it a force or a field?
There's a person in my class who thinks that the formula for
gravitational potential (-GM/r) represents the work done by gravity to
move an object from infinity to any point in the gravitational field.
-GM/r is the gravitational potential at a distance $r$ from the centre of the Earth and is the work done by an external force in moving unit mass from infinity (zero of potential) to a distance $r$ from the centre of the Earth.
The work done by the gravitational attraction on the unit mass due to the Earth (gravity?) is positive as the force and the movement of the mass are in the same direction.
I know it's actually the work done by the object as it goes towards
the earth. That's consistent with the formula W=Fd (gravity would be
doing positive work, hence negative work by the object itself) and the
fact that the object would be gaining kinetic energy as it moves
towards the earth, so it's doing negative work (since work represents
the transfer of energy).
I found this statement very difficult to unravel.
I know it's actually the work done by the object as it goes towards
the earth.
It would have been better to add a word to make it
. . . . actually the [negative] work done by the object . . . .
That's consistent with the formula W=Fd (gravity would be
doing positive work, hence negative work by the object itself)
This concept of negative work done by an object is not really needed in this case.
and the fact that the object would be gaining kinetic energy as it moves towards the earth, so it's doing negative work (since work represents the transfer of energy).
Here this idea of negative work done by an object is continued to explain the increase in the kinetic energy of the object.