Indeed. People seem to forget that prayer transcends time, so you could literally pray for anyone that they had a last second conversion. If you wanted to pray for Stalin for the grace of conversion at his death, you could. It doesn't mean he responded to grace and converted but you are doing your part, atemporally, to have God provide that grace.
It's not like you're saying they're definitely in heaven or Purgatory by doing so.
Some of you will reach for anything to try to "save" someone outside The Church. This doesn't even make sense because IF that were the case then there would be evidence of their conversion in "real time" that would manifest itself
before the person's death. Some of you will play these little scenarios and semantics that make no Catholic sense whatsoever so you can compromise with the world by seeming "nice." Truth is not so nice sometimes.
The sober and Catholic way to look at this without compromising with the world and being a sentimentalist is to understand that unless someone knowingly outside The Church showed some exterior/manifest signs of conversion before death then we are not to pray for them. Doing so tells God that you think there's salvation outside of His Church or it turns into the whole "BoD" thing which is another can of worms altogether so I won't get into that here. One could argue that "but...but...they may have become Catholic all of the sudden!" That's an absurd notion just to try to "save" someone. Even if that were granted in extremely rare cases it would still manifest itself as a deathbed conversion so people can actually see that they became Catholic before they died.
Sorry to pick on your post specifically but I see this attitude here all the time and it needs to be called out.
The fewness of the saved is a real thing and one people (myself included) should meditate on daily. It's not "judging" someone to take Church Teaching to it's natural conclusion. There are some in my family that died manifestly outside The Church, I'm not just going to say "well maybe they converted in their mind and some invisible person baptized them before death that I couldn't see" when they lived their lives outside The Church loving their sins until their death or other such semantics just because I loved them and would have preferred they were saved. One shouldn't subject their feelings and sentimentalism to God's revealed Truth.