Can I say "occasionally" instead of "frequently" in this context?

Native speaker’s answer
Rebecca
No, you can't replace "frequently" with "occasionally." "Occasionally" and "frequently" have opposite meanings. "Occasionally" means infrequently or sometimes. "Frequently" means regularly or often. Ex: I visit the gym occasionally. => I visit the gym sometimes. Ex: She takes her dog to the park frequently. => She takes her dog to the park regularly. Ex: They occasionally go out to eat. => They sometimes go out to eat. Ex: He frequently goes to that store. => He regularly goes to that store.