Tools/Options/Edit - deselect "edit directly in cell"
To have it both ways, use VBA to trap the beforedoubleclick event:
right-click the sheet tab, select view code, then enter:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
cancel=True
Selection.DirectPrecedents.Select
End Sub