Crystalline deformation rings with Hodge--Tate weights between 0 and p