Thames Valley Police has issued the warning after a dog was removed from an Oxfordshire car as it was "dangerously hot".