If the hinges are bent causing the door not to open and close properly you will have to replace the door hinges.
How to fix refrigerator door hinges.
Adjust only the top hinge to straighten an upper door.
Clean the refrigerator door gaskets with warm soapy water and a soft cloth.
Moving the middle hinge will affect the upper door so you may have to adjust the top hinge afterward.
To realign the lower door adjust the middle hinge.
Prepare to quell the squeal before you eradicate the squeak remove the refrigerator contents from the door compartments and shelves.
To realign the door just pry off the hinge cap and loosen the hinge screws.
You can follow the steps in this video to help you do this easy repair.