You can use any of those methods. However you can also use a potential divider, that's just two resistors.
To cut down the 5V signal to 3v3