isBeforeOrSame = function (x, y, x2, y2) {
  return x < x2 || (x === x2 && y < y2);
}
Checks if line number A is before line number B, if it's the same then it checks if the column of A
is before the column of B

@param {number} x - The line number of A
@param {number} y - The column number of A
@param {number} x2 - The line number of B
@param {number} y2 - The column number of B

@returns {Boolean} Whether the current line/column A is before or the same as B