Limiting the number of logon attempts over a certain time interval reduces the chances that an unauthorized user may gain access to an account.
Check
Verify Ubuntu 22.04 LTS enforces a delay of at least four seconds between logon prompts following a failed logon attempt by using the following command: