HI @VaishnaS1
I dont think there is OOTB feature for this but you can write custom solution for this
Something like this
Override /libs/granite/core/components/login/login.js
Create service to update /home/user/NODE for wrong attempts count, and after 2-3 wrong attemt,add timestamp also. And on login check if user already reached limit, show account lock message.
Hope this helps