Often used to describe something that is close to a certain condition.
La casa está rayana al río, ofreciendo vistas espectaculares desde su balcón.
The house is bordering the river, offering spectacular views from its balcony.
La casa está rayana con el río, lo que crea un paisaje impresionante.
The house is bordering the river, which creates an impressive landscape.