how to disable jetpack for non admins?

Use the code given below, In this code we are checking if page is ‘jetpack’ and based on that showing custom error message.

add_action( 'admin_init', 'restrict_page' );
function restrict_page() {
    if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
        if ( isset( $_GET['page'] ) && $_GET['page'] == 'jetpack' ) {
            wp_die( 'no access' );
        }
    }
}