A method for controlling the crane of a working machine (10, 44) by using boom tip control, in which method the crane comprises at least two booms (24, 26, 28) and a head of the crane, which booms are connected to the working machine (10, 44) and to each other in an articulated manner, and which booms are moved in relation to the working machine (10, 44) and each other by means of actuators (32, 34, 36) controlled by a control system of the working machine (10, 44), and in which method - direction and speed of motion of the head of the crane, controlled by a driver applying controls (50, 52) in the working machine (10, 44), are achieved by applying speeds of the booms (24, 26, 28) of the crane, - wherein the crane comprises a hoisting boom connected at its first end in an articulated manner to the working machine, a stick boom connected at its first end in an articulated manner to the second end of the hoisting boom, and an extension boom connected to the stick boom at its second end and movable linearly outwards and inwards in the longitudinal direction of the stick boom - wherein the working machine is a forest machine, characterized in that - the speeds of the booms (24, 26, 28) of the crane are controlled automatically in at least one of the following manners in the respective situations implementing prioritizations of movements of the booms: - (i) when the head of the crane is moved towards the working machine, the extension boom is withdrawn into the stick boom as fast as possible; - (ii) when the head of the crane is farther than a predetermined maximum limit distance from the working machine, the head of the crane is lowered by applying the hoisting boom and the lowering movement performed by the stick boom is limited; - (iii) when the head of the crane is farther than a predetermined maximum limit distance, the head of the crane is hoisted by applying the hoisting boom so that the hoisting movement performed by the stick boom is limited correspondingly. - direction and speed of motion of the head of the crane, controlled by a driver applying controls (50, 52) in the working machine (10, 44), are achieved by applying speeds of the booms (24, 26, 28) of the crane, - wherein the crane comprises a hoisting boom connected at its first end in an articulated manner to the working machine, a stick boom connected at its first end in an articulated manner to the second end of the hoisting boom, and an extension boom connected to the stick boom at its second end and movable linearly outwards and inwards in the longitudinal direction of the stick boom - wherein the working machine is a forest machine, - the speeds of the booms (24, 26, 28) of the crane are controlled automatically in at least one of the following manners in the respective situations implementing prioritizations of movements of the booms: - (i) when the head of the crane is moved towards the working machine, the extension boom is withdrawn into the stick boom as fast as possible; - (ii) when the head of the crane is farther than a predetermined maximum limit distance from the working machine, the head of the crane is lowered by applying the hoisting boom and the lowering movement performed by the stick boom is limited; - (iii) when the head of the crane is farther than a predetermined maximum limit distance, the head of the crane is hoisted by applying the hoisting boom so that the hoisting movement performed by the stick boom is limited correspondingly. - (i) when the head of the crane is moved towards the working machine, the extension boom is withdrawn into the stick boom as fast as possible; - (ii) when the head of the crane is farther than a predetermined maximum limit distance from the working machine, the head of the crane is lowered by applying the hoisting boom and the lowering movement performed by the stick boom is limited; - (iii) when the head of the crane is farther than a predetermined maximum limit distance, the head of the crane is hoisted by applying the hoisting boom so that the hoisting movement performed by the stick boom is limited correspondingly.