Range.disjoint?/2

defmodule Range do
  def disjoint?(range1, range2)
end

Returns true if range1 does not overlap range2.

It returns false otherwise.