If the mm is a seller at the ask, then you are the buyer at the ask.
If the mm is a buyer at the bid, you are the seller at the bid.
That is the rule of thumb, and if you want a definite fill, you buy at the ask and sell at the bid. But you can put in a buy at the bid price and sometimes it fills. Same as selling at the ask. It isn't guaranteed but it can happen.