I've done magnets for geckos and while searching for strong enough ones, my weaker ones tended to just let it fall off when pushed on instead of sliding around. So I think the worst you might have happen is the thermometer falling down if the magnets shift away from each other enough when moved.
But I can't really see any way that it could pinch or otherwise be an issue. Those thermometers don't weigh that much either, so falling a few inches is probably no big deal anyway.
Sent from my SM-G950U using Tapatalk