which party buys at bid and sells at the ask

Which party would buy at the bid and sell at the ask, the investor or the dealer?

The dealer.