Same character, two completely different readings: noun dì 'earth / place' versus structural particle de that hooks adverbial modifiers onto verbs. Compare
他去了一个地方 (he went to a place — noun, dì) with
他慢慢地走 (he walks slowly — particle, de). When the word right before is an adjective and right after is a verb, read de. Otherwise default to dì.