N #>= 0, N #< 3, length(Ls, N), false.
The expression above does not terminate when posted on the swi prolog terminal.
I have tried exchanging the order of goals.
length(Ls, N), N #>= 0, N #< 3, false.
and
length(Ls, N), N >= 0, N < 3, false.
I am using SWI-Prolog version 8.4.3 for x86_64-linux