Let $d$ be a metric on $X$ and $(X,d)$ a non-compact metric space i.e. $X = \mathbb{R}$ or $\mathbb{Q}$ For $x,y \in X$ define $$ \tilde{d}(x,y) := \begin{cases} d(x,y), & \text{if }d(x,y) < 1, \\ 1, & \text{else.} \end{cases} $$ Show that $\tilde{d}$ is metric on $X$.
My attempts
Because $d$ is a metric, $\tilde{d}(x,y) \ge 0$ for all $x,y \in X$. If $x = y$, we have $d(x,y) = 0 < 1$ and therefore $\tilde{d}(x,y) = 0$ If $\tilde{d}(x,y) = 0 \neq 1$, we have $\tilde{d}(x,y) = d(x,y) = 0$ and therefore somit $x = y$.
This metric is trivially symmetric, since $d$ is.
Let $x,y,z \in X$.
Case 1: $d(x,z) < 1$. Then we have $$ \tilde{d}(x,z) = d(x,z) \le d(x,y) + d(y,z). $$
Case 2: $d(x,z) \ge 1$. Then, we have $$ 1 = \tilde{d}(x,z) \le d(x,z) \le d(x,y) + d(y,z). $$
But I know know how to continue from here, I know that we have $\tilde{d}(x,y) \le d(x,y)$ für alle $x,y \in X$, but I don't know how to use it.
Is my approach for the positive definiteness and symmetry correct? How can I prove the triangle inequality?