Probably the most "oh, fuck you, game" moment I ever had in Prince of Persia was involving the health system.
I had just managed to clear out a room full of sand-creatures and by the end of it had only a tiny, TINY bit of health left. I figured it didn't matter, since I still won, and moved on, continuing down the path and looking for a fountain. I came into the observatory, which required a lot of swinging around bars and platforms. Whatever, no big deal.
I get on one bar, swing up to a higher platform, and when I drop down onto it, I die instantly. Apparently, the drop was JUST enough to cause my character to wince in pain as he dropped onto it, causing the tiniest bit of health loss, and ultimately killing my character.
I am now locked in a room which I have saved in, with no way to bring my health back up, and a puzzle sequence that requires I die if I want to move on. This happened at a point where I had completed about 70% of the game.
I raged so much that I didn't even touch the game again for a couple of years, and I had to start the ENTIRE DAMN GAME over again to get to the same point.