If it is getting that hot then adding stand-offs will reduce any potential for fire. So would adding a preferably aluminum sheet between it and the wall. I suggest aluminum instead of steel for it's very high thermal conductance. Doing both is probably overkill, but can't hurt.
I used a Klixon thermal switch for the computer style 80mm box fans in our first camper's 3-way fridge's vent:
https://www.amazon.c.../dp/B000PY7T7I/
I had little manual control over the switch, the fans would run when needed if the fridge was turned on.