An intriguing intermediate state as a bridge between antiferroelectric and ferroelectric perovskites