barely

すれすれ More of a bad meaning. That car rolled past us and we were almost hit! That thing you did is borderline criminal. There’s not enough room for the waitress to barely barely squeeze between the tables because the customers have selfishly pulled their chairs away from the tables to sit.
 
ぎりぎり Barely. We got on the train with just seconds to spare! I passed the test by one percent!