They're both safe. However, Santa Monica is its own city and has a constant police presence at the Promenade and The Pier. Venice is part of Los Angeles and so the budget is spread thin. Also, The Venice Boardwalk is empty and dark at night so doesn't feel safe like bustling and bright Santa Monica.