How to Initially Ward Player Away from Key, Story-Driving Item?

I have an item in my DnD-5e story that is intended to have a warding effect, in that the story requires that it have a "magical ability" with the intention of warding or repelling people away from that location. However, this is an item the players must eventually obtain as it is crucial for the story.

My initial thought was to allow this item to use a spell like this Repel spell, if the players attempt to interact with it, but they need some way to overcome this spell and actually obtain this item.

How can I allow this item to ward players players away, while still having a way for the players to circumvent the warding effect and obtain said item?