An explicit high-order scheme coupling event detection and boundary protection for non-smooth dynamics