As FI Spyder writes disconnect the battery before you start working in the area underneath the headlamps!
Or you might loose some fingers. Because turning the knob underneath the lift motor very slightly will otherwise actuate the motors.
And they will only stop when the headlight is fully raised
Other possibility is to disconnect the red connectors in the engine bay behind the headlamps, as per red label in the engine bay.
This has the added advantage that you can clean the connectors contacts while you're at it!
Said label is visible in the lower right corner of the picture below.