pub fn try_restrict_range(expr: Expr) -> Result<(Expr, Expr), Expr>
Restricts a tuple of form {start=a, end=b} into a range a..b.
{start=a, end=b}
a..b