Should you ignore your kids when they say they dont like you?

Is it best to ignore your 5 year old when they tell you “i don’t love/like you” my 2 year old is picking up on that too now… I get he’s upset about something but I don’t want him being disrespectful.