In a way that is close or barely sufficient. She narrowly escaped being hit by the car.
In a limited or restricted manner. The proposal was narrowly focused on environmental issues.
With little margin for error or success. The team narrowly won the championship by just one point.