Warn the user before his last invalid credentials while login

Hi,
Want to know is there any kind of feature in OKTA admin console or OKTA API,

  1. Set the number which that many number of times user can enter invalid credentials through API which we can do this using admin console → password policy
  2. Show a warning message before user entering his last attempt, message is like “There is one last attempt to get user locked” - Not found this setup in OKTA console and through API.
    Thanks you