On the latch side a door is cut at a slight bevel to make it easier to close.
How to fix a door hinge that keeps closing.
Work your way from the top of the door to the bottom.
Place a large nail or small screwdriver on the bottom of the center hinge pin of your door.
The easiest fix is to remove your middle hinge pin and put a slight bend in it.
Open the door and check that the hinge pins are seated all the way within the hinge.
Adjust the hinge to have it align correctly and snugly with the door and frame.
Remove the pin by placing a screwdriver under the middle hinge.
Tap it with a hammer forcing the nail out the top of the hinge.
Take a hammer and long nail and tap the pin gently from the highest hinge.
If a door binds open it grasp the knob and lift up to see if a hinge is loose.
If not align the hinge knuckles and tap the pins.
Tap the screwdriver with the hammer until the pin pops up from the hinge and can be removed by hand.
If one is loose remove two or more screws and try driving in longer screws.
The door should no longer move itself.
If your door has only two hinges close.
Use a screwdriver to tighten the screws attaching the hinges to the door and the door frame.
How to fix a door that swings shut.
When i say slight that means a barely noticeable bend.