How to freeze an animation on the last frame?

I have a simple animation where something moves up when the player is near, and its supposed to stay up so long as they’re there, but instead it plays the animation of moving up and then resets to its original position.

I tried to set the animation’s wrap mode to Clamp forever but that doesn’t seem to work.

What should I do?