As you said, دوست دارم has 2 pronunciations. If someone write it, you should guess which meaning they are referring to according to the context. But if someone tell it to you, you can simply get the meaning by the way they pronounce it.
دوسِت دارم = I love/like you.
دوست دارم = I like (something).