codice:
select * from tabella
where campo < N 
order by campo desc limit 1