Behavioural generalism could facilitate co-existence of tropical and temperate fishes under climate change.