The players that the target permanent has protection from are determined as Cliffside Rescuer’s ability resolves. If an opponent somehow gains control of that permanent later in the turn, it still has protection from your opponents, including its new controller.