Two problems:
Hot or warm food will briefly warm up the air and therefore to some degree the food already in fridge, especially items immediately near it. Cycling temperatures does not help fresh food quality or life. Modern fan forced fridges may suffer this problem less.
It is very power inefficient to do this, just. Just let it cool on the bench until it reaches a cooler temperature and then place it in the refrigerator. Use any of the well documented-documented and appropriate techniques to cool food quickly and safely if it is going to longer than 2 hours to cool.