How do you not hit the curb when up/down hill parking?

The last time I took my driving test I failed because I climbed the curb. Its only happened on the test yet I don't know how to not do it if that makes sense
How do you not hit the curb when up/down hill parking?
Post Opinion