A dimension in Revit reports geometry, it does not define it
A Revit dimension measures the distance between two references. If you could type 3000 over a measured 2985, the sheet would show a size the model does not have, and nothing would warn the contractor. Revit therefore blocks numeric text in Replace With Text and shows the Invalid Dimension Value dialog.

Decide which element is wrong and move it. Select that element, click the dimension value that appears in blue, type the correct distance and press Enter. Lock the dimension (padlock) if the relationship must be kept.
If the element will not move, check that it is not pinned, constrained by another locked dimension or hosted on something that is.