If, through God's permissive will, a pope acts as a "scourge", we ought to accept and endure the chastisement and offer up the sufferings he inflicts.
"And he that taketh not up his cross, and followeth me, is not worthy of me". (Matthew 10:38)
If a particular pope is eventually determined by the Church to have been an anti-pope, we will have incurred no sin by engaging in the Catholic practices of offering prayers and penances for him during his incumbency, nor by "resisting him to his face" when he proposes deviations from the Deposit of Faith. On the other hand, if we mistakenly turn our back on one who in the Mind of God is a legitimate pope because our private judgment misleads us, we risk offending God.
You’re still stuck on the Cephas verse aren’t you? Cephas did not propose deviations to the Faith. Therefore you can not use it to support your “recognize and resist” position.