FRAME: Boosting LLMs with A Four-Quadrant Multi-Stage Pretraining Strategy