I arrived at the restaurant just before they stopped taking orders.
I got to the restaurant just before they took their last orders for the kitchen.
ーI couldn't order very much because I arrived at the restaurant just before they stopped taking orders.
「ラストオーダーギリギリにレストランに着いたので、あんまり注文できなかった。」
「ラストオーダーギリギリ」は just before they stopped taking orders(注文を取るのをやめるちょっと前)のように言います。
ーI got to the restaurant just before they took their last orders for the kitchen so I could only order a couple things.
「ラストオーダーギリギリにレストランに入ったので、2〜3品しか注文できなかった。」
「ラストオーダーギリギリ」は just before they took their last orders for the kitchen(厨房用のラストオーダーを取るちょっと前)のようにも言えます。
ご参考まで!