The refrigerator should not stand near the stove at all - it heats up from a hot surface and can quickly fail. Parents had a similar situation - they brushed aside my advice on the location of appliances in the kitchen and got to repair the freezer https://highend-repair.com/freezers-repair/ only because it was near the stove. After an expensive repair, the refrigerator quickly found another place, although before that the parents assured that there was nowhere else to put it.