In digital logic, there are two levels 1 and 0 also called as High and low respectively. while implementing in hardware, the designer can set any voltage level to high/low and w.r.t that level, voltage for low/high is set.
In your first sentence, voltages above +2 is considered as logic high and voltage below 0.8 is considered as logic low. Between 2 and 0.8 it is undefined, that is your harware can consider t high or low. we cant say. This voltage level for 1 and 0 is specific to particular tech and design.
In the second statement of yours, they have taken 0V for logic 0 and 5V for logic 1.
In ECL logic you can find logic 1 defined at -0.2V and logic 0 defined as -5V
So different technology/design has different voltage level definition for logic 1 and 0. usually higher voltage is defined for 1 and lower voltage is defined for 0
here reference from wiki
https://en.wikipedia.org/wiki/Logic_level
checkout the voltage levels for different technology.