Hi Bob,
Here's one way. I'm sure there are others and probably better.
Make a copy with Duplicate Image.
On the duplicate, using curves, set each end of the curve to the cut-off value you want, so the curve line is straight and horizontal. You now have a file exactly the size of the original image and it is flat gray.
Use Apply Image, with source set to the copy, to apply the copy to the original. Use blending mode Darken to isolate dark tones, Lighten to isolate light tones.
You now have a file which is all gray except the tones you want.
Select the flat gray areas with, say, the Magic Wand.
Edit Fill with white or black as needed.
Best, Ben