Before the aircraft gets a C of A it will have been flown by a test pilot to ensure that it does all the right things right up to the limitations and a little beyond. The idea being that if you invertantly make a total pigs of it then the machine will still recover if you take the correct action.
Training is designed to teach you to recognise the onset of conditions that you are hoping to avoid, so that you will get nowhere near them in normal flight. The conditions for practicing these things invariably includes more stringent limits and safety margins so that recovery can be safely demonstrated and practiced.