You can use this code in your function.php:
$args = array('must_log_in'=> '<spam class="must-log-in">' . sprintf( __( 'You must be <a href="https://wordpress.stackexchange.com/questions/256371/%s">logged in</a> to post a comment.' ), HERE YOUR CUSTOM PAGE URL ) . '</spam>');
comment_form($args);