If you enter the wrong passcode six times in a row, you'll be locked out of your device, and you'll receive a message that says iPhone is disabled. If you can't remember your passcode, you can erase your iPhone with a computer or with recovery mode, then set a new passcode.