A dose setting mechanism for an injection device that limits the setting of a dose beyond a predetermined amount of medication. The mechanism is based on a first stop element (400) that reciprocates between a first position and a second position during the dose setting and dose delivery step, and a second stop element (300) that moves unidirectionally during dose delivery. The first and second stop elements both have limiters (301)(401)and the axial or angular distance between the two limiters is reduced during dose setting and remains contact during dose delivery whereby the setting of a dose exceeding a predetermined amount of medication is prevented when the two limiters are engaged. Furthermore, a method for assembly and programming the predetermined amount of medication that can be dispensed from the injection device is presented.