Finds the first item in an array less than or equal to a given element.