Tim Allen is firing back at Pamela Anderson after she accused him of flashing her decades ago on the set…