nodes – How to show a JS confirm dialog in hook_node_validate?

Regards, 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 to make that?