How do I show a confirm dialog in hook_node_validate()? [closed]

I want to check a integer field value in a node add/edit form, if the value is greater than 10, I need display a JS confirm dialog "Are you sure your *** is greater than 10?", if user click on "Yes", the form validation passes, if "No", the node add form displays as it is and wait the use to edit.

How can I achieve this?