What does it mean to 占便宜？ What exactly does it mean to 占人家便宜？ Are there other ways of using 占便宜？

My general understanding is that it means to get the better or others, but I'm never sure when or how to use it properly.
占便宜 means "to take (unfair) advantage (at other people's expense)", "to profit at others' expense".