The universal freeze-out criterion at SPS and RHIC