Material node to help sharpen a mask

You might be able to get something like this by using an if node.

Plug the red output of your texture sample into A, plug a scalar .1 into B, then, for A > B plug the RBG of your text sample, and for both A = B or A < B plug in a 0 constant.