Why do you store both numbers? If the begin number is equal to the previous end number by defenition, there is no need to store both.
In your setup you may also encounter overlapping numbers. Like:
10, 69, 77
Any validation will only tell you there is something wrong. But not what is wrong. The...