Max value for numeric input not working

dcc.Input(id ='number-of-tweets',placeholder='500',className='u-full-width',type='number',max=4500)

The above is my code, but still user is able to input the value higher than 4500, and form accepts that value.