The Pharisee had conditions on Jesus that led to conclusions...
IF Jesus was a prophet, he would know true character
IF Jesus was a prophet, and knew this- he would have nothing to do with her
SINCE Jesus accepted this woman- he doesn’t know her character
SINCE Jesus allows this woman to touch him, He can not be a prophet
SINCE Jesus isn’t meeting my expectations of a prophet, I can dismiss his teachings.