Note that the expression is 'past its best', not 'pasted'. This doesn't mean that it's unpleasant or dangerous to eat - it just means that it's not especially fresh or juicy any more.
I wouldn't say 'be careful' if a fruit is simply a bit dry or overripe. You'd only say 'be careful' if it posed a risk to your health. If you are thinking of something that might make you ill, you could say '... it's going mouldy' or '..it's gone mouldy'. This is when it is so old that it has green or black fur (fungus) growing on it!
When a fruit ( or cheese, milk etc) has an unpleasant smell or has started to putrefy, you can say that it's 'gone/going bad'. In British English we also have the informal but very common phrase 'It's gone off' to describe this condition. This isn't used in American English, however.