1. Adjective: When describing something that is turned or positioned with the top part facing downwards. For example, "The picture was hanging upside down."
2. Noun: When referring to the positive or advantageous aspects of something. For example, "The upside of working from home is having more flexibility."
So, you need to look at the sentence to determine which part of speech "upside" is acting as.