So after playing around with OP I encountered this situation.
Task 1 - asap - locked with “lock with end date” or with begining of the project (like on the picture bellow)
Task 2 - ALAP
Task 3 - asap - also locked
Why isn’t task 1 violating task 2 (upper image)?
After changing task 2 to asap there is clearly a violation here (lower image).