2 to 4 units is (or was) the sweet spot for the small real estate investor
you get the economy of scale (leverage) of multiple units but stay out of the commercial financing world that comes along with the 5th unit (residential mortgages are cheaper and require lower down payment than commercial)