I think you're getting things a little bit mixed up?
The higher the flex, the more the de-rate so the engine is producing less thrust, the engine is fooled into producing what it thinks is the max performance for a theoretical higher temperature which doesn't exist, therefore with the ambient temperature being lower the thrust is derated from maximum for the ambient temperature.
Does that make sense??