What's wrong with:
```python
if (np.issubdtype(points.dtype, np.number) and
        iris.util.monotonic(points, strict=True)):
    coord = DimCoord(points, units=units)
    coord.rename(name)
    cube.add_dim_coord(coord, dim)
```