I agree with Harald's and Steve's comments. Here is the only suggestion I'm going to make. It's basically Harald's window comparator suggestion implemented with transistors.
If the FPGA pin is set to input mode (or, preferably, output mode but tri-stated), it will float to a voltage...