If you enter the wrong password too many times on a Mac, the OS X login window will display a message that says "Incorrect password. Please try again." After a certain number of unsuccessful attempts, the system will lock the account and prevent further login attempts.
Here are some possible steps that may help you if you're locked out of your Mac due to entering the wrong password too many times:
1. Wait it out: After several unsuccessful attempts, your account may be locked for a certain amount of time. The duration of the lockout varies depending on the security settings of your Mac.
2. Reset your password using your Apple ID: If you've enabled the "Reset Password" feature in the settings menu, you can use your Apple ID to reset your password and regain access to your account.
3. Use a different admin account: If you have another account with administrator privileges, you can use that account to reset the password for the locked account.
4. Use the recovery mode: You can use the recovery mode to boot your Mac and reset the password in the terminal.
It's important to note that if you're locked out of your Mac due to entering the wrong password too many times, it's possible that someone else may have attempted to access your account without your permission. In that case, it's recommended that you review your security settings and consider changing your password for added security.