Upgrade cluster autoscaler

Hi

Here we can read that cluster autoscaler version is bound with kubernetes version:autoscaler/cluster-autoscaler/README.md at master · kubernetes/autoscaler · GitHub

Currently I use EKS 1.26 but I need to upgrade it to EKS 1.27. Should I first upgrade EKS and next cluster-autoscaler or do it in opposite order? Which approach is more safe?