If you enable IP restriction, then there is a potential that your own IP address might not be in the range, and in that case, you will be locked out. To avoid that you need to put your own IP in the Allowed IP range. Enter your IP in the "IP start" and "IP end" to allow your IP.
Please watch the following for a detailed explanation: