At the gym? See the Hanging Leg Raises guide.
As you lift, think “Legs up, hips curl” on the way up, and think “Low back glued to the floor” on the way down.
Earn 3 × 10 strict reps with your lower back flat first. Then make each rep harder instead of adding more: slow the lowering to 3–4 seconds.
When it stalls. If your lower back starts lifting or aching, shorten the range and rebuild from there.