Diaper size

This may be a dumb question sorry first time mom but my daughter is in size 4 diapers but how do I know when to switch from 5? I mean before it was just easier but I feel like now she can wear either size but I don’t want her to be uncomfortable so how do I know if to continue the 4 or go to 5?