I don't know the exact answer, but I have had a rim fail due to excess wear.
I know that if slight bulges start to occur around the spoke holes, then it's getting too late.
New rims have wear indicators which are probably just a way to get us to replace our rims more often.
In my opinion, you can better idea with the tire off because you can feel what thin aluminium feels like