Weird take. This person wasn't hurting anyone, all they did was cross a barrier. To say they somehow deserve to be injured for a totally victimless crime seems sadistic.
This isn't a cost/benefit analysis. This is about whether or not there should be some sort of cosmic punishment for failing to obey posted signage regarding the crossing of barriers. I don't even know where you came up with that.