If you break down the sentence in question, you get the above two sentences.Code:The museum is closed now. We visited the museum last month.
Please note that the museum is the object of the verb, visited.
You don't use an adverb as an object of a transitive verb.
Student or Learner