A hydraulic crane comprising: - a crane base; - a column which is rotatably mounted to the crane base so as to be rotatable in relation to the crane base about an essentially vertical axis of rotation; - a crane boom system comprising two or more liftable and lowerable crane booms (11,13) which are articulately connected to each other, including at least a first crane boom which is articulately connected to the column and a second crane boom which is telescopically extensible to enable an adjustment of the extension length thereof; - an electronic control device which is configured to prevent an execution of crane boom movements that would make the lifting moment of the crane exceed a lifting moment maximum value (M max) representing a maximum allowed value for the lifting moment of the crane; and - sensors (41, 42, 43, 44) connected to the electronic control device and configured to establish values of variables (α, β, L, θ) which are related to the prevailing position of the crane booms (11, 13) of the crane boom system, wherein the electronic control device is configured to establish position information as to the prevailing position of the load suspension point of the crane boom system in relation to said vertical axis of rotation based on the values of these variables (α, β, L, θ), characterized in that the electronic control device, when it has established that the lifting moment of the crane has reached a limit value (M limit) at a given level below the lifting moment maximum value (M max), is configured to prevent the execution of any combination of crane boom movements that would increase the horizontal distance (r) between the load suspension point and said vertical axis of rotation and at the same time allow the execution of any combination of crane boom movements that keeps the horizontal distance (r) between the load suspension point and said vertical axis of rotation unchanged or reduces the horizontal distance (r) between the load suspension point and said vertical axis of rotation. - a crane base; - a column which is rotatably mounted to the crane base so as to be rotatable in relation to the crane base about an essentially vertical axis of rotation; - a crane boom system comprising two or more liftable and lowerable crane booms (11,13) which are articulately connected to each other, including at least a first crane boom which is articulately connected to the column and a second crane boom which is telescopically extensible to enable an adjustment of the extension length thereof; - an electronic control device which is configured to prevent an execution of crane boom movements that would make the lifting moment of the crane exceed a lifting moment maximum value (M max) representing a maximum allowed value for the lifting moment of the crane; and - sensors (41, 42, 43, 44) connected to the electronic control device and configured to establish values of variables (α, β, L, θ) which are related to the prevailing position of the crane booms (11, 13) of the crane boom system, wherein the electronic control device is configured to establish position information as to the prevailing position of the load suspension point of the crane boom system in relation to said vertical axis of rotation based on the values of these variables (α, β, L, θ), characterized in that the electronic control device, when it has established that the lifting moment of the crane has reached a limit value (M limit) at a given level below the lifting moment maximum value (M max), is configured to prevent the execution of any combination of crane boom movements that would increase the horizontal distance (r) between the load suspension point and said vertical axis of rotation and at the same time allow the execution of any combination of crane boom movements that keeps the horizontal distance (r) between the load suspension point and said vertical axis of rotation unchanged or reduces the horizontal distance (r) between the load suspension point and said vertical axis of rotation.