i think walking is safer, because bikes can accidentally swerve into car lanes and get hit, they are usually ridden on the street. compared to walking you have the curb, trees, buildings, street lights that can protect you, like if there were a car heading toward you, you can probably, like jump behind a mail box or something vs. the bike you have to get off then run away.