It can mean: "for example, if..."
"It can be scary to travel alone, you know. Like if you hitch-hike by yourself, you might find yourself in danger."
"You could easily spend less money on groceries, like if you grew your own lettuce and shopped at less expensive stores."
Does this help?