How to range-check luma in After Effects?
You can add a new adjustment layer at the top of your composition, with the Levels effect set to the following:


Input Black: 254
Input White: 255




This will have the result of causing any luma values that were below 254 to become black, while anything above it becomes white. Here is an example of it over a fractal noise pattern:

Before



After