def find_previous(element, l):
    length = len(l)
    for index, current in enumerate(l):
        if length - 1 == index:
            return current
        if index == 0:
            if element < current:
                return None
        if current <= element < l[index+1]:
            return current