My cat is obsessed with trying to climb on a specific piece of furniture, but it's unsafe and idk how to discourage him
So one of my cats has recently become OBSESSED with getting on top of my bathroom cabinet, as well as a small shelf connected to it which contains some light fixtures for the sink.
I understand he wants/needs to be on high places, and he has access to plenty of those in every other room of the house. However this spot in particular is dangerous for a few reasons: the shelf is very narrow so he cannot turn around on it and has already fallen off once while trying to do it, there are electrical cables for the lights above the shelf which cannot be moved or protected, and that spot gives him access to the top of the door and he has hurt his paw by jumping on it and causing it to close.
I considered placing a shelf right above that spot so he could hang out there, but it would not solve the door issue. I have also considered putting a cat tree somewhere in the room, but the room is small and he would surely be able to jump up there from the tree. So for now I have stacked that area with baskets and full bags of litter to make it look crowded, but he keeps looking up there and crying and I am afraid he will try to jump up anyway sooner or later and hurt himself if he fails.
What can I do to make this whole situation safer?